Bug 32198 - Blank pdf output from cups-pdf 3.0.1-3.mga9
Summary: Blank pdf output from cups-pdf 3.0.1-3.mga9
Status: NEW
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 9
Hardware: All Linux
Priority: High major
Target Milestone: ---
Assignee: David GEIGER
QA Contact:
URL:
Whiteboard:
Keywords: IN_ERRATA9
Depends on:
Blocks:
 
Reported: 2023-08-28 16:27 CEST by Dusan Pavlik
Modified: 2024-02-05 00:30 CET (History)
6 users (show)

See Also:
Source RPM: cups-pdf-3.0.1-3.mga9.src.rpm
CVE:
Status comment:


Attachments
Diff from https://raw.githubusercontent.com/archlinux/svntogit-packages/packages/cups-pdf/trunk/remove-deprecated-ghostscript-setpdfwrite-operator.diff (2.36 KB, patch)
2023-08-29 18:33 CEST, Dave Hodgins
Details | Diff
wrong output from patched cups-pdf (41.26 KB, application/pdf)
2023-08-31 18:02 CEST, Dusan Pavlik
Details
Pdf generated with BRF (130.69 KB, application/pdf)
2023-11-08 23:57 CET, katnatek
Details

Description Dusan Pavlik 2023-08-28 16:27:13 CEST
Description of problem:
If I printing to cups-pdf printer. Output is one blank pdf page.

Version-Release number of selected component (if applicable):
cup-pdf 3.0.1-3.mga9

How reproducible:


Steps to Reproduce:
1. Select printer cup-pdf
2. Printing
Dusan Pavlik 2023-08-28 16:27:28 CEST

Version: Cauldron => 9

Comment 1 Lewis Smith 2023-08-28 21:15:06 CEST
Please say what desktop you are using. Does this happen when printing from any application?

I need to try this.

Source RPM: (none) => cups-pdf-3.0.1-3.mga9.src.rpm
Summary: Blank pdf output from cup-pdf 3.0.1-3.mga9 => Blank pdf output from cups-pdf 3.0.1-3.mga9
CC: (none) => lewyssmith

Comment 2 Lewis Smith 2023-08-28 21:38:19 CEST
Confirmed.
Cauldron/Mageia 9, LxQt, cups-pdf-3.0.1-3.mga9
I installed the package, and used MCC to 'add' the cups-pdf 'printer'. It then appeared as an option in print dialogues. (Also an entry for 'cups-pdf-linux', which if selected did not activate the print button).
Tried printing to it from two different applications, single pages; in both cases the result was a blank page.

No visible maintainer for this; and cups itself has various committers; so assigning this bug globally.

Assignee: bugsquad => pkg-bugs
CC: lewyssmith => (none)
Severity: normal => major

Comment 3 Dave Hodgins 2023-08-29 02:03:31 CEST
# cat /var/log/cups/cups-pdf-Generic-CUPS-PDF-Printer_log
Mon Aug 28 19:17:00 2023  [ERROR] Can't read
Mon Aug 28 19:17:01 2023  [ERROR] ghostscript reported an error
Mon Aug 28 19:17:01 2023  [STATUS] PDF creation successfully finished

Might be an error in parameters specified in /etc/cups/cups-pdf.conf to
properly pass the pdf to ghostscript. Not sure though.

CC: (none) => davidwhodgins

Comment 4 Dusan Pavlik 2023-08-29 06:56:54 CEST
I mean there is solution

https://www.linuxquestions.org/questions/slackware-14/cups-pdf-printer-prints-a-blank-pdf-after-ghostscript-9-54-0-update-4175694164/

ps. I using wine programs and I need output to pdf
Comment 6 David GEIGER 2023-08-30 06:09:41 CEST
Please the upcoming cups-pdf-3.0.1-3.1.mga9 update.


Assigning to QA,

Packages in 9/Core/Updates_testing:
======================
cups-pdf-3.0.1-3.1.mga9

From SRPMS:
cups-pdf-3.0.1-3.1.mga9.src.rpm

Assignee: pkg-bugs => qa-bugs
CC: (none) => geiger.david68210

Comment 7 Dusan Pavlik 2023-08-31 18:00:40 CEST
I install cups-pdf-3.0.1-3.1.mga9.x86_64.rpm    

But output is wrong.  See attachment.
Comment 8 Dusan Pavlik 2023-08-31 18:02:48 CEST
Created attachment 13961 [details]
wrong output from  patched cups-pdf
Comment 9 Dave Hodgins 2023-08-31 19:48:44 CEST
Confirmed it still doesn't work properly. Trying to print a text file
with some characters set to bold/italic, to pdf from oowriter, the pdf has ...
ERROR:
rangecheck
OFFENDING COMMAND:
defineresource
STACK:
--nostringval--
/R13
/CMap
--nostringval--
/R13
--nostringval--
13


So there's something wrong with generating of the pdf document.
Comment 10 Morgan Leijström 2023-09-03 22:59:53 CEST
Just noting cups-pdf is not in a a released media, so this issue is not for errata  (even though this problematic cups-pdf-3.0.1-3 is in release *repository*)

CC: (none) => fri

Comment 11 Dave Hodgins 2023-09-03 23:36:00 CEST
The errata isn't just for things on the iso images. It's also for anything that
breaks or requires manual changes after upgrading from m8 to m9.
Comment 12 Morgan Leijström 2023-09-03 23:43:06 CEST
Upgrading breaks pdf printing.

https://wiki.mageia.org/en/Mageia_9_Errata#Printing

Keywords: (none) => IN_ERRATA9
Priority: Normal => High

Comment 13 Morgan Leijström 2023-09-04 10:52:59 CEST
Updated errata with tips on workarounds: many programs can export pdf by other means.

---

Related:

Users need to go hunting for where the output file gets stuffed away.
Here using cuips.pdf the file gets "hidden" in ~/Desktop - not localised.

(Desktop have different names in different languages, plus some desktop systems do not always show its content as desktop.)
 
And nowhere in the setup procedure nor settings nor print dialogue (what I can find) or when it prints, user is told where the output will go or how to set it.
Did I miss something, is this a bug or should I post an enhancement request?
Comment 14 Marja Van Waes 2023-10-13 17:31:39 CEST
(In reply to Dusan Pavlik from comment #7)
> I install cups-pdf-3.0.1-3.1.mga9.x86_64.rpm    
> 
> But output is wrong.  See attachment.

(In reply to Dusan Pavlik from comment #8)
> Created attachment 13961 [details]
> wrong output from  patched cups-pdf

(In reply to Dave Hodgins from comment #9)
> Confirmed it still doesn't work properly. Trying to print a text file
> with some characters set to bold/italic, to pdf from oowriter, the pdf has
> ...
> ERROR:
> rangecheck
> OFFENDING COMMAND:
> defineresource
> STACK:
> --nostringval--
> /R13
> /CMap
> --nostringval--
> /R13
> --nostringval--
> 13
> 
> 
> So there's something wrong with generating of the pdf document.

Setting the "feedback keyword"

Keywords: (none) => feedback
CC: (none) => marja11

Comment 15 katnatek 2023-10-13 19:39:16 CEST
Not works, try to print this bug report from firefox, and produce a blank pdf
Comment 16 Dusan Pavlik 2023-11-01 19:12:52 CET
I thought about this problem and used another printer offered in drakconf. It is specifically a BRF printer.


-workarounds with printing to pdf (not export), 

Step by step:
1. open drakonf / drakprinter
2. add new printer
3. choose "Generic CUPS-BRF"  - printer (forward)
4. select "generic" (manufacturer) - (forward)
5. select driver "PDF" (forward)
6. change name if you want    (apply)

Now printer BRF is printing to  "/home/user/BRF" or "/root/BRF"

Output is looking good. Output have .brf sufix but is regular pdf file.

I  will examining it in different situations.
Comment 17 katnatek 2023-11-08 23:56:36 CET
(In reply to Dusan Pavlik from comment #16)
> I thought about this problem and used another printer offered in drakconf.
> It is specifically a BRF printer.
> 
> 
> -workarounds with printing to pdf (not export), 
> 
> Step by step:
> 1. open drakonf / drakprinter
> 2. add new printer
> 3. choose "Generic CUPS-BRF"  - printer (forward)
> 4. select "generic" (manufacturer) - (forward)
> 5. select driver "PDF" (forward)
> 6. change name if you want    (apply)
> 
> Now printer BRF is printing to  "/home/user/BRF" or "/root/BRF"
> 
> Output is looking good. Output have .brf sufix but is regular pdf file.
> 
> I  will examining it in different situations.

This recommendation works for me
Comment 18 katnatek 2023-11-08 23:57:39 CET
Created attachment 14143 [details]
Pdf generated with BRF
PC LX 2024-01-06 15:57:22 CET

CC: (none) => mageia

Comment 19 Thomas Andrews 2024-02-04 21:52:06 CET
The workaround may get the job done after a fashion, but cups-pdf should still be fixed. Sending it to David Geiger, who attempted the fix in comment 6.

CC: (none) => andrewsfarm
Assignee: qa-bugs => geiger.david68210
Keywords: feedback => (none)

Comment 20 Thomas Andrews 2024-02-04 21:56:00 CET
(In reply to Morgan Leijström from comment #13)
> Related:
> 
> Users need to go hunting for where the output file gets stuffed away.
> Here using cuips.pdf the file gets "hidden" in ~/Desktop - not localised.
> 
> (Desktop have different names in different languages, plus some desktop
> systems do not always show its content as desktop.)
>  
> And nowhere in the setup procedure nor settings nor print dialogue (what I
> can find) or when it prints, user is told where the output will go or how to
> set it.
> Did I miss something, is this a bug or should I post an enhancement request?

I'd say let's get this fixed as it is first, then you can file an enhancement request about your concerns.
Comment 21 katnatek 2024-02-05 00:23:40 CET
(In reply to Thomas Andrews from comment #19)
> The workaround may get the job done after a fashion, but cups-pdf should
> still be fixed. Sending it to David Geiger, who attempted the fix in comment
> 6.

The current version is from 2017 https://www.cups-pdf.de/changelog.shtml, and the possible fix not works.

I say we must recommend use CUPS-BRF instead
Comment 22 Morgan Leijström 2024-02-05 00:30:25 CET
So to drop in mga10?

Note You need to log in before you can comment on or make changes to this bug.