View Issue Details

IDProjectCategoryView StatusLast Update
0008370ScribusPDFpublic2009-08-29 00:18
Reporterpspencer Assigned Tofschmid  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
PlatformlinuxOSFedoraOS Version10
Product Version1.3.5 
Fixed in Version1.3.6svn 
Summary0008370: Inline Render Frames Don't Always Export Properly to PDF
DescriptionIf I have an inline render frame (we use these to render mathematical formulas inline in a regular scribus text frame) and export to pdf with the experimental "Embed EPS/PDF" feature checked, I often find the render frame does not appear in the final pdf. The items are there, but seem to be drawn in the background colour so they are invisible.

I notice there is code in pdflib_core.cpp that seems to be designed to address precisely this problem because it is commented "add default graphics stack parameters pdftex relies on them" -- however that code is never executed in the case of an inline render frame.

I have attached a 1-line patch which prevents the skipping of that code when dealing with any render frame. I'm not sure if that's the "right" solution but it works well for us.
Steps To ReproduceCreate a LaTeX frame. Copy it into a text frame as an inline frame. Export to PDF with "Embed EPS/PDF Graphics" selected. Observe the LaTeX code doesn't appear.
Additional InformationPatch is attached.
TagsNo tags attached.
Patch

Activities

2009-08-21 14:29

 

renderexport.patch (449 bytes)   
--- scribus-1.3.5.1/scribus/pdflib_core.cpp.orig	2009-08-11 13:47:59.000000000 -0400
+++ scribus-1.3.5.1/scribus/pdflib_core.cpp	2009-08-20 16:15:10.000000000 -0400
@@ -6678,6 +6678,7 @@
 	if (SharedImages.contains(fn))
 		ImInfo2 = SharedImages[fn];
 	if ((!SharedImages.contains(fn))
+		 || c->asLatexFrame()
 		 || (fromAN)
 		 || (c->effectsInUse.count() != 0)
 		 || ((ImInfo2.origXsc != ImInfo.origXsc) || (ImInfo2.origYsc != ImInfo.origYsc))
renderexport.patch (449 bytes)   

fschmid

2009-08-21 18:36

administrator   ~0022395

Patch applied to 1.5.0svn

jghali

2009-08-24 22:54

administrator   ~0022415

Applied to 1.3.6svn too!

Issue History

Date Modified Username Field Change
2009-08-21 14:29 pspencer New Issue
2009-08-21 14:29 pspencer File Added: renderexport.patch
2009-08-21 18:36 fschmid Note Added: 0022395
2009-08-24 22:52 jghali Status new => assigned
2009-08-24 22:52 jghali Assigned To => fschmid
2009-08-24 22:54 jghali Note Added: 0022415
2009-08-24 22:54 jghali Status assigned => resolved
2009-08-24 22:54 jghali Fixed in Version => 1.3.6svn
2009-08-24 22:54 jghali Resolution open => fixed
2009-08-29 00:18 christoph_s Status resolved => closed