Bug 97908 - problems with printing some PDF's
Summary: problems with printing some PDF's
Status: RESOLVED NOT A BUG
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-26 00:55 UTC by MarC
Modified: 2014-05-08 08:29 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Test.pdf (test file to reproduce the bugs I comment) (858.16 KB, application/pdf)
2005-01-28 20:20 UTC, MarC
Details
Test2x1.pdf (test file to reproduce the bugs I comment) (862.49 KB, application/pdf)
2005-01-28 20:39 UTC, MarC
Details
Test_toPS.ps (PS file in a zip) (148.31 KB, application/x-zip-compressed)
2005-01-31 19:14 UTC, MarC
Details
Test_toPS2x1.ps (PS in a zip) (149.21 KB, application/x-zip-compressed)
2005-01-31 19:19 UTC, MarC
Details
test_acroread.ps zipped. (107.59 KB, application/x-zip-compressed)
2005-02-01 15:40 UTC, MarC
Details

Note You need to log in before you can comment on or make changes to this bug.
Description MarC 2005-01-26 00:55:58 UTC
Version:            (using KDE KDE 3.3.2)
Installed from:    Debian testing/unstable Packages
Compiler:          gcc 3.3.5 
OS:                Linux

I have an HP Laserjet 4L printer configured with the hpijs driver in CUPS.
When I put one PDF in a format of 2 pages per original page, sometimes I can't print the final PDF (maybe some problem of memory). The work is sent to the printer but then it gets refused without giving any explanation! 
This only happens with kprinter (acroread o kghostview); with gpdf I print it without any problem, also using the CUPS  system. I've got a sample in wich you could try it but I don't know how to send it to you.

Thanks for your good work. If you need more feedback, just ask me.
Sincerely,
MarC
Comment 1 Michael Goffioul 2005-01-27 09:07:50 UTC
Can you try to:
1) "kprinter your_file.pdf", select 2 pages per sheet in the printer properties dialog, and "Print"
2) "kghostview your_file.pdf", print it to "Print To File (PS)" pseudo-printer, and then "lpr -o number-up=2 the_result_file.ps"

Do these 2 cases work OK?

Michael.
Comment 2 MarC 2005-01-28 19:50:54 UTC
En/na Michael Goffioul ha escrit:

>------- You are receiving this mail because: -------
>You reported the bug, or are watching the reporter.
>         
>http://bugs.kde.org/show_bug.cgi?id=97908         
>
>
>
>
>------- Additional Comments From kdeprint_bugs swing be  2005-01-27 09:07 -------
>Can you try to:
>1) "kprinter your_file.pdf", select 2 pages per sheet in the printer properties dialog, and "Print"
>2) "kghostview your_file.pdf", print it to "Print To File (PS)" pseudo-printer, and then "lpr -o number-up=2 the_result_file.ps"
>
>Do these 2 cases work OK?
>
>Michael.
>
>
>
>  
>
Im sorry to answer late. I was busy.

Here you have more clues:

Test.pdf is the original file
Test2x1.pdf obtained with pdfnup

(I answer to 2) The option 2 pages for sheet with "Print to File" always 
work, but the problem is how do you print it.

(I answer to 1) Typing "kprinter Test.pdf", 2 pages per sheet, and 
selecting range for pages 27-28, IT  SUCCEEDS.
Typing "kprinter Test2x1.pdf", 1 pages per sheet, and selecting range 
page 14  only, IT  SUCCEEDS.

Opening Test.pdf with kghostview, 2 pages per sheet, and selecting range 
for pages 27-28, IT FAILS (it doesnt print anything).
Opening Test.pdf with acroread, redirecting all to kprinter, 2 pages per 
sheet, and selecting range for pages 27-28, IT FAILS.
Opening Test2x1.pdf with kghostview, 1 pages per sheet,  and selecting 
range page 14 only, IT SUCCEEDS but prints the page bad (vertically when 
it should do it horizontally).
Opening Test.pdf with acroread, redirecting all to kprinter, 1 pages per 
sheet, and selecting range page 14 only, IT FAILS.

hope that this helps.
Comment 3 MarC 2005-01-28 20:20:26 UTC
Created attachment 9331 [details]
Test.pdf (test file to reproduce the bugs I comment)
Comment 4 MarC 2005-01-28 20:39:55 UTC
Created attachment 9332 [details]
Test2x1.pdf (test file to reproduce the bugs I comment)
Comment 5 Michael Goffioul 2005-01-31 13:04:32 UTC
I tried your Test.pdf file, using kghostview, I printed pages 27-28 to a PS file with 2 pages per sheet enabled (I cannot test it on a real printer) and the result viewed with gv looks OK. Is it also the case for you? If yes, can you try to print the resulting file with "lpr"? Can you do the same, but using 1 page per sheet when printing in kghostview, and using "lpr -o number-up=2" to actually print it?

Michael.
Comment 6 MarC 2005-01-31 19:13:35 UTC
En/na Michael Goffioul ha escrit:

>------- You are receiving this mail because: -------
>You reported the bug, or are watching the reporter.
>         
>http://bugs.kde.org/show_bug.cgi?id=97908         
>
>
>
>
>------- Additional Comments From kdeprint_bugs swing be  2005-01-31 13:04 -------
>I tried your Test.pdf file, using kghostview, I printed pages 27-28 to a PS file with 2 pages per sheet enabled (I cannot test it on a real printer) and the result viewed with gv looks OK. Is it also the case for you? 
>
well it is displayed out of the margins when I see it on kghostscript... 
but it is done OK (lpr prints it ok).
I attach it in file Test_toPS2x1.ps in order that you can see it.
(The problem always appears when I use the HP Laserjet 4L printer, I 
never had it printing to a file)

>If yes, can you try to print the resulting file with "lpr"? 
>
yes it prints it correctly.

>Can you do the same, but using 1 page per sheet when printing in kghostview, and using "lpr -o number-up=2" to actually print it?
>
>  
>
I attach the ps to Test_toPS.ps
it doesn't print it. it is rejected.

>Michael.
>
>
>
>  
>

Comment 7 MarC 2005-01-31 19:14:48 UTC
Created attachment 9374 [details]
Test_toPS.ps (PS file in a zip)
Comment 8 MarC 2005-01-31 19:19:11 UTC
Created attachment 9375 [details]
Test_toPS2x1.ps (PS in a zip)
Comment 9 Michael Goffioul 2005-02-01 10:01:28 UTC
1. the out-of-margin problem you see in kghostview is probably related to the fact that kghostview doesn't use the right media size, try to change it

2. it looks like when CUPS does the 2-up operation, the result cannot be printed by your driver, but this is out of the scope of KDEPrint. Can you try the same operations with acroread?
- print to PS file (directly form acroread, do not use kprinter), 1 page per sheet, "lpr -o number-up=2"
- print to PS file (idem), 2 pages per sheet, "lpr" (I'm not sure if acroread allows you to print 2 pages per sheet, if not, just forget this case)

3. If you succeed to print in point 2, try the same but using kprinter this time to print to a PS file.
Comment 10 MarC 2005-02-01 15:38:36 UTC
En/na Michael Goffioul ha escrit:

>------- You are receiving this mail because: -------
>You reported the bug, or are watching the reporter.
>         
>http://bugs.kde.org/show_bug.cgi?id=97908         
>
>
>
>
>------- Additional Comments From kdeprint_bugs swing be  2005-02-01 10:01 -------
>1. the out-of-margin problem you see in kghostview is probably related to the fact that kghostview doesn't use the right media size, try to change it
>
>2. it looks like when CUPS does the 2-up operation, the result cannot be printed by your driver, but this is out of the scope of KDEPrint. Can you try the same operations with acroread?
>- print to PS file (directly form acroread, do not use kprinter), 1 page per sheet, "lpr -o number-up=2"
>  
>
when I do "lpr test_acroread.ps" or "lpr -o number-up=2 
test_acroread.ps" NOTHING is printed. I attach the file.

>- print to PS file (idem), 2 pages per sheet, "lpr" (I'm not sure if acroread allows you to print 2 pages per sheet, if not, just forget this case)
>  
>
acroread doesn't have this options. This is why I use kprinter...

>3. If you succeed to print in point 2, try the same but using kprinter this time to print to a PS file.
>
>
>
>  
>

Comment 11 MarC 2005-02-01 15:40:14 UTC
Created attachment 9382 [details]
test_acroread.ps zipped.
Comment 12 Michael Goffioul 2005-02-01 16:11:14 UTC
Well, it looks like the problem is not directly related to KDE. Indeed, you can reproduce the problem with PS generated from acroread without use of KDE components. It appears that the PS data generated by acroread/kghostview(gs) from your PDF file, combined with the 2-up operation performed by CUPS, produces errors in the printer driver.
This is out of the control of kdeprint and I'm afraid I can't help you further. You don't have that problem with gpdf probably because gpdf uses another PDF rendering engine (Xpdf), which is the same as kpdf (did you try kpdf to see if the problem occured?).
I'll reassign the bug to kghostview, because there's nothing I can do at my level.

Michael.
Comment 13 MarC 2005-02-01 20:48:40 UTC
ok many thanks. I'll appreciate that you reassign the bug of kghostview. 
Maybe you could tell also CUPS developpers about the 2-up operation?
and well... for acroread and my driver (hpijs, from HP) I'm afraid I 
will have to do the same as for all the propietary programs (hope that 
some developer fix it spontaneously)...

thanks again. kde rocks


En/na Michael Goffioul ha escrit:

>------- You are receiving this mail because: -------
>You reported the bug, or are watching the reporter.
>         
>http://bugs.kde.org/show_bug.cgi?id=97908         
>kdeprint_bugs swing be changed:
>
>           What    |Removed                     |Added
>----------------------------------------------------------------------------
>         AssignedTo|kdeprint_bugs swing be      |luis luispedro org
>            Product|kdeprint                    |kghostview
>
>
>
>------- Additional Comments From kdeprint_bugs swing be  2005-02-01 16:11 -------
>Well, it looks like the problem is not directly related to KDE. Indeed, you can reproduce the problem with PS generated from acroread without use of KDE components. It appears that the PS data generated by acroread/kghostview(gs) from your PDF file, combined with the 2-up operation performed by CUPS, produces errors in the printer driver.
>This is out of the control of kdeprint and I'm afraid I can't help you further. You don't have that problem with gpdf probably because gpdf uses another PDF rendering engine (Xpdf), which is the same as kpdf (did you try kpdf to see if the problem occured?).
>I'll reassign the bug to kghostview, because there's nothing I can do at my level.
>
>Michael.
>
>
>
>  
>

Comment 14 Adrián Chaves (Gallaecio) 2012-10-15 21:08:57 UTC
Can you confirm whether or not this works with Okular?
Comment 15 Albert Astals Cid 2014-05-08 08:29:22 UTC
No answer for years.