View Issue Details

IDProjectCategoryView StatusLast Update
0015113ScribusPDFpublic2018-01-28 19:39
Reporteru ltd. Assigned Tojghali  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionduplicate 
Platformamd64OSalike debianOS Version9
Product Version1.5.4.svn 
Summary0015113: Exporting embedded pdf file with ArtBox != MediaBox.
Description
In pdflib_core.cpp the ArtBox of embedded pdf files isn't respected correctly. This worked fine in 1.4.6.

There's a workaround which I did only test for my sample file (do you want this file uploaded?)


OLD code of pdflib_core.cpp, about line 9760 and again 9890
            if (rotation == 0)
                PutDoc("0 0");

BETTER code of pdflib_core.cpp, about line 9760 and again 9890
            if (rotation == 0)
                PutDoc(Pdf::toPdf(0.0-pageRect.GetLeft()/pageRect.GetWidth()) +
                       " " +
                       Pdf::toPdf(0.0-pageRect.GetBottom()/pageRect.GetHeight()));
Steps To Reproduce
I have a Scribus document which includes an embedded pdf object (as image frame). This pdf object has an ArtBox different smaller than the MediaBox.
When exporting the document to pdf using the experimental embed pdf option the object gets cropped because it is moved outsite it's BBox.
Additional InformationRemark: I'm using a 1.5.3 svn version, but I updated the respective PDF export code to 1.5.4svn so I marked it as 1.5.4 svn for this ticket.

This piece of code happenes 2x in pdflib_core.cpp as there's a big bunch of nearly identical duplicated code.

Question: Are there test procedures in Scribus to catch regression bugs? This would have saved me lots of time as I originally wanted to simply use the program.
Tagspdf export, regression
PatchYes

Relationships

duplicate of 0014840 closedjghali Exporting embedded pdf file sometime produces incorrect result 

Activities

u ltd.

2018-01-27 20:39

reporter  

CodeToChange.png (78,408 bytes)   
CodeToChange.png (78,408 bytes)   

jghali

2018-01-28 19:38

administrator   ~0044883

Already fixed in 1.5.4.svn with r22052. The code shown in your screenshot is not current anymore.

Issue History

Date Modified Username Field Change
2018-01-27 20:39 u ltd. New Issue
2018-01-27 20:39 u ltd. File Added: CodeToChange.png
2018-01-27 20:39 u ltd. Tag Attached: pdf export
2018-01-27 20:39 u ltd. Tag Attached: regression
2018-01-28 19:38 jghali Assigned To => jghali
2018-01-28 19:38 jghali Status new => resolved
2018-01-28 19:38 jghali Resolution open => duplicate
2018-01-28 19:38 jghali Note Added: 0044883
2018-01-28 19:38 jghali Relationship added duplicate of 0014840
2018-01-28 19:39 jghali Status resolved => closed