View Issue Details

IDProjectCategoryView StatusLast Update
0016272CentOS-7cupspublic2019-07-16 12:53
Reportertps800 
PrioritynormalSeveritymajorReproducibilityalways
Status newResolutionopen 
Product Version7.6.1810 
Target VersionFixed in Version 
Summary0016272: cups-pdf produces one single empty page regardless of input
DescriptionTrying to print various files:

convert -page A0+0+0 /data/dwdsat/fetched/data/Z__C_EDZW_20190716111509_obs01,obs_wmo_dl_N_999999_999999_201907161100_KU4.png PS:- 2>>${LOG_FILE} | lp -o media=A4 -o page-top=28 -o fitplot -d "CUPS-PDF" | awk '{print $4}' 2>>${LOG_FILE}

This sends the generated EPS directly to the printer CUPS-PDF. cups-pdf takes the input and then generates a one empty side printout.
convert does its job:

convert -page A0+0+0 /data/dwdsat/fetched/data/Z__C_EDZW_20190716111509_obs01,obs_wmo_dl_N_999999_999999_201907161100_KU4.png PS:output.ps

generates a postscript file readable by gs or evince. Even:

convert -page A0+0+0 /data/dwdsat/fetched/data/Z__C_EDZW_20190716111509_obs01,obs_wmo_dl_N_999999_999999_201907161100_KU4.png PDF:output.pdf

works as expected.

Now I could:

# cat output.ps | lp -o media=A4 -o page-top=28 -o fitplot -d "CUPS-PDF"

or

# cat output.pdf | lp -o media=A4 -o page-top=28 -o fitplot -d "CUPS-PDF"

both generate the "one-empty-page"-pdf seen above. While both files are viewable by gs or evince.
Steps To ReproduceInstall CentOS, install cups, cups-pdf, configure cups and cups-pdf.
Print anything -- even the testpage will do.
Have cups-pdf create one-side-empty-pdf documents from anything.
Additional Information/var/log/cups/cups-pdf:
Tue Jul 16 13:36:09 2019 [STATUS] directory created (/var/spool/cups-pdf/SPOOL)
Tue Jul 16 13:36:09 2019 [STATUS] spool directory created (/var/spool/cups-pdf/SPOOL)
Tue Jul 16 13:36:09 2019 [STATUS] directory created (/var/spool/cups-pdf/dwdsat)
Tue Jul 16 13:36:12 2019 [STATUS] PDF creation successfully finished (/var/spool/cups-pdf/dwdsat/job_25629-cups-pdf_log.pdf)
Tue Jul 16 13:52:53 2019 [STATUS] PDF creation successfully finished (/var/spool/cups-pdf/dwdsat/job_25630-cups-pdf_log.pdf)
Tue Jul 16 13:53:07 2019 [STATUS] PDF creation successfully finished (/var/spool/cups-pdf/dwdsat/job_25631-cups-pdf_log.pdf)

$ ll /var/spool/cups-pdf/dwdsat/
insgesamt 12
-rw-r--r--. 1 dwdsat dwd-gruppe 2217 16. Jul 13:36 job_25629-cups-pdf_log.pdf
-rw-r--r--. 1 dwdsat dwd-gruppe 2217 16. Jul 13:52 job_25630-cups-pdf_log.pdf
-rw-r--r--. 1 dwdsat dwd-gruppe 2217 16. Jul 13:53 job_25631-cups-pdf_log.pdf

File to print:
-rwx------. 1 dwdsat dwd-gruppe 216783 15. Jul 18:43 dwdsat/archive/opendata/weather/charts/forecasts/icon/eu_nest/ce/Z__C_EDZW_20190715155845_nwv01,icoeu_ccl_ce_N_042048_999999_201907151200_WV11.png/Z__C_EDZW_20190715155845_nwv01,icoeu_ccl_ce_N_042048_999999_201907151200_WV11.png

Generated pdf and ps:
-rw-r--r--. 1 dwdsat dwd-gruppe 190224 16. Jul 13:51 output.pdf
-rw-r--r--. 1 dwdsat dwd-gruppe 7737816 16. Jul 13:51 output.ps

Real printers do indeed print all three files without issues (as any others).

Software:
cups-1.6.3-35.el7.x86_64
cups-client-1.6.3-35.el7.x86_64
cups-filesystem-1.6.3-35.el7.noarch
cups-filters-1.0.35-22.0.1.el7.x86_64
cups-filters-libs-1.0.35-22.0.1.el7.x86_64
cups-libs-1.6.3-35.el7.x86_64
cups-pdf-2.6.1-7.el7.x86_64
ghostscript-cups-9.07-31.el7_6.11.x86_64
gutenprint-cups-5.2.9-18.el7.x86_64
Tagscups, pdf
abrt_hash
URL

Activities

tps800

tps800

2019-07-16 12:11

reporter  

output.pdf (190,224 bytes)
tps800

tps800

2019-07-16 12:38

reporter   ~0034833

It is the same for RedHat EL7, CentOS 7, OracleLinux 7 and Scientific Linux 7.
TrevorH

TrevorH

2019-07-16 12:53

manager   ~0034834

CentOS is a rebuild of the sources used to create RHEL. We do not modify anything except to remove branding and logos. You will need to submit your request to Redhat via bugzilla.redhat.com and if/when RH accepts it and incorporates it into RHEL and releases a patched version, then CentOS will pick it up and rebuild it.

Issue History

Date Modified Username Field Change
2019-07-16 12:11 tps800 New Issue
2019-07-16 12:11 tps800 File Added: Z__C_EDZW_20190715155845_nwv01,icoeu_ccl_ce_N_042048_999999_201907151200_WV11.png
2019-07-16 12:11 tps800 File Added: output.pdf
2019-07-16 12:11 tps800 Tag Attached: cups
2019-07-16 12:11 tps800 Tag Attached: pdf
2019-07-16 12:38 tps800 Note Added: 0034833
2019-07-16 12:53 TrevorH Note Added: 0034834