View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0013451 | Scribus | public | 2015-10-22 11:45 | 2015-11-27 14:17 | |
Reporter | htgoebel | Assigned To | jghali | ||
Priority | high | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Fixed in Version | 1.4.6.svn | ||||
Summary | 0013451: Invalid PDF when specifying a non-existing page to export | ||||
Description | When specifying a non existing page-number in the PDF-Export dialog, the Written PDF is invalid: - Okular simply says "can not open" - pdf2pdf says: **** Warning: Invalid Page count. **** Warning: Invalid Page count. No pages will be processed (FirstPage > LastPage). I set priority to "high", since this is very hard to find. I had to rebuild documents from scratch and compare the XML files to find this. A "normal" person will most probably not be able to find the cause. | ||||
Steps To Reproduce | I prepared "Document-1-buggy.sla" which you can export to PDF immediately. If you want to create such a buggy export from scratch: - Open a new "one page" document - Optionally: Add some simple text to have some content - Export to PDF with option: - Choose pages: "2" (yes, two) - Try to open the PDF with Okular or process with pdfp2df. - Enjoy the error :-\ | ||||
Additional Information | Attached find thee documents: 1. Document-1.sla - a neatly empty document exporting fine 2. Document-1-buggy.sla - the same document with page-range to export set to "2" 3. Document-1-buggy.pdf - the invalis PDF generated by exporting Document-1-buggy.sla The only difference between the attached .slas is the page-range: $ wdiff -3 Document-1.sla Document-1-buggy.sla ====================================================================== [-rangeSel="0" rangeTxt=""-] {+rangeSel="1" rangeTxt="2"+} ====================================================================== | ||||
Tags | No tags attached. | ||||
Patch | No | ||||
related to | 0011818 | new | [PATCH] No page range check in PDF export dialog |
|
|
|
|
|
|
|
pdf2pdf is a simply script wrapping ghostscript. In the end-effect it does the following: gs -q -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite "-sOutputFile=foo.pdf" -c save pop -f Document-1-buggy.pdf (I tested this command and it shows the same "Illegal page count" error.) |
|
I forgot: Scribus 1.5.0 |
|
Thinking about this, I'd say, the pdf-expoter should check if the page-numbers are within range and if not, issue an error. The Export-Dialog should then show this error message. |
|
for page range check request and patch see 0011818 |
|
Added a page range check to both 1.4.6.svn and 1.5.1.svn |
|
Fantastic! |
|
Tested OK. |
|
Fixed in r20486 by jean Closing please advise for 0011818 |
Date Modified | Username | Field | Change |
---|---|---|---|
2015-10-22 11:45 | htgoebel | New Issue | |
2015-10-22 11:45 | htgoebel | File Added: Document-1.sla | |
2015-10-22 11:45 | htgoebel | File Added: Document-1-buggy.sla | |
2015-10-22 11:45 | htgoebel | File Added: Document-1-buggy.pdf | |
2015-10-22 11:48 | htgoebel | Note Added: 0036815 | |
2015-10-22 12:26 | jghali | Assigned To | => jghali |
2015-10-22 12:26 | jghali | Status | new => assigned |
2015-10-22 14:06 | htgoebel | Note Added: 0036819 | |
2015-10-22 14:09 | htgoebel | Note Added: 0036821 | |
2015-10-22 15:59 | JLuc | Relationship added | related to 0011818 |
2015-10-22 16:00 | JLuc | Note Added: 0036826 | |
2015-10-22 17:50 | jghali | Note Added: 0036838 | |
2015-10-22 17:50 | jghali | Status | assigned => resolved |
2015-10-22 17:50 | jghali | Fixed in Version | => 1.4.6.svn |
2015-10-22 17:50 | jghali | Resolution | open => fixed |
2015-10-22 18:06 | Kunda | Note Added: 0036841 | |
2015-10-22 18:37 | JLuc | Note Added: 0036842 | |
2015-11-27 14:17 | Kunda | Note Added: 0037702 | |
2015-11-27 14:17 | Kunda | Status | resolved => closed |