Bug 2054232

Summary: pdf2ps generate extra empty page
Product: [Fedora] Fedora Reporter: Robert Marcano <robert>
Component: ghostscriptAssignee: Richard Lescak <rlescak>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: akhaitovich, mjg, mosvald, rlescak, zdohnal
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-03-01 09:46:35 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Robert Marcano 2022-02-14 13:40:21 UTC
Description of problem:

When converting a PDF to a PostScript file using pdf2ps, and extra empty page is added.


Version-Release number of selected component (if applicable):

ghostscript-9.55.0-3.fc36.x86_64


How reproducible:

Always


Steps to Reproduce:
1. Get a simple PDF
2. Use `pdf2ps <file>.pdf` in order to get a new `<file>.ps`
3. Open the new file with a PostScript viewer, for example Evince
4. Convert it again to PDF with `ps2pdf <file>.ps new.pdf`
5. Open the new PDF

Actual results:

The generated PostScript has a new empty page at the end, in order to discard some kind of problem with the viewer, the PostScript file is again converted to PDF and the final PDF show too the same empty page at the end, not present on the source PDF


Expected results:

No appended extra empty page


Additional info:

This is causing problems with CUPS-PDF and probably any real PostScript too will waste a page added by conversion from PDF to PostScript.

Doing exactly the same on Fedora 35 on the same source PDF, has no problem.

Comment 1 Richard Lescak 2022-03-01 09:46:35 UTC
Hi Robert,

thanks for your report.

Problem was caused by lcms2 package which is now fixed.
With lcms2 2.13.1 there is no extra page generated.