| Summary: | Landscape PDF printed as portrait (and truncated) | ||
|---|---|---|---|
| Product: | TDE | Reporter: | Timothy Pearson <kb9vqf> |
| Component: | tdegraphics | Assignee: | Michele Calgaro <michele.calgaro> |
| Status: | NEW --- | ||
| Severity: | normal | CC: | bugwatch, gomadtroll, kb9vqf, michele.calgaro |
| Priority: | P5 | ||
| Version: | 3.5.13.x [Trinity] | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Compiler Version: | TDE Version String: | ||
| Application Version: | Application Name: | ||
| Attachments: |
Construction Drawing
print dialog with ksnapshot page selection screenshot print preview new test drawing |
||
|
Description
Timothy Pearson
2008-10-14 22:14:47 CDT
Is this report still valid? (In reply to comment #1) > Is this report still valid? Not sure, would need to test, but I expect that this report is still valid. This report may also relate to Bug 1427 Created attachment 2081 [details]
Construction Drawing
Debian Wheezy, amd64, TDE 3.5.13. Trying to print a construction drawing, pdf format in kpdf. I use 11x17 paper which is, depending on orientation, either ledger or tabloid. The image printed is 8.5x11, letter size. The image is not scaled to 11x17. I use cups 1.5.3 + depends and recommends. hpcups 3.12.6 (color, 2-sided printing) driver. HP Officejet Pro 8600 After reading the comments, it seems there are actually two things to fix here: 1) print orientation of PDFs created with landscape orientation (comment 0) 2) scaling of the image size (comment 4) With some pdf, the "Orientation" section in the "General" tab of the printer properties is grayed out and it is not possible to modify it. ------ Greg, I just printed your DWG in tabloid 11x17 format and the print came out ok. Do you still have the problem you described? (I am using cups 1.7.5) (In reply to Michele Calgaro from comment #6) > With some pdf, the "Orientation" section in the "General" tab of the printer > properties is grayed out and it is not possible to modify it. > > ------ > > Greg, I just printed your DWG in tabloid 11x17 format and the print came out > ok. Do you still have the problem you described? (I am using cups 1.7.5) Wheezy. wheezy backports, cups 1.5.3, hpcups 3.12.6, hp-officejet_pro_k8600.ppd no change here.Using 'evince' prints normally. cups 1.7.5 -jessie,hpcups 3.14.6 same bug results. Using 'okular' prints normally. Maybe it is my printer, HP officejet_pro_k8600. > cups 1.7.5 -jessie,hpcups 3.14.6 same bug results. Using 'okular' prints > normally. Same setup here, just different printer (HP Officejet 7612). I will try again tomorrow (today I can not), maybe I mistakenly print using KGhostView. If you follow this link: https://bugs.launchpad.net/ubuntu/+source/kdegraphics/+bug/47649 there are two other docs to test (see comment 3 and 4 in the linked page). One of them is supposed to print incorrectly, but on my system they both print alright. Can you do a test as well, for comparison? Testing other pdf I noticed that using custom settings for the margin does not seems to work well: the print preview is correct but the printed page is always partially cut out, regardless of margin settings and page orientation. Tried both images linked to, still not printing correctly..one thing I noticed, the image that is printed is about 7"x10", orientation is correct. greg Greg, thanks for the feedback. I can't seem to be able to reproduce the problem on my system. Today I tried to print again your pdf DWG on tabloid 11x17 paper and it came out "full page". Could you take the following screenshots, tar-zip them in a single file and attach them here? Please use the Jessie system, not the wheezy one. 1) open the Construction Drawing you attached to this bug in kpdf 2) Ctrl+P to print. Expand the 'options' button. 3) take snapsnots of each tab displayed in the print dialog 4) press the 'Properties' button beside the printer name 5) take snapsnots of each tab displayed in the new dialog I know it is a little troublesome, but it may help to see if there is any difference in how we are printing. If I can reproduce the problem on my system, it will help a lot. If not, we have to look for other ways to debug it. Would it be ok for you to compile kpdf on your system if needed? Or at least doing some gdb-debugging provided you first have the TDE source files installed? > With some pdf, the "Orientation" section in the "General" tab of the printer
> properties is grayed out and it is not possible to modify it.
This is because kpdf decides the default orientation looking at the page size and set it before invoking the print dialog (see kpdf/part.cpp:1022 Part::slotPrint(), in particular line 1048 if (landscape > portrait) printer.setOrientation(KPrinter::Landscape); ).
After commenting out line 1048, the "Orientation" section in the "General" tab is now enabled and clickable, but whatever the user choice is, it does not seem to make any difference. Probably there is some other code to look at in the generator section.
Created attachment 2438 [details]
print dialog with ksnapshot
I provided the snapshots requested. I won't be doing any of the other stuff... no help there. I am going to load Jessie + TDE 14 on a spare workstation and test..it will take some time. My Jessie test was using a VM. I am suprised to hear printing 11x17 works for you. The bug on launchpad was quite old..as a user, I learned to do workarounds in Linux, lots of choices. Created attachment 2439 [details]
page selection screenshot
Created attachment 2440 [details]
print preview
Greg, thanks for taking the time to prepare those screenshots. They may have given me a clue of why we get different results. As you can see from the 'page selection' screenshot that I have attached above, my printer does not have a 'Ledger 11x17in' page, just a 'Tabloid 11x17in' since the paper feed is tabloid (portrait). I have just scratched the surface of the kpdf code so far, but it may be that that difference is the cause of the different behavior between out systems. Do you have also a 'Tabloid 11x17in' option in your printer? If so, do you get the same result? By the way (keep in mind I do NOT have a real OJ K8600 here, so I may be saying something completely wrong), I had a look at the K8600 printer specification on the HP website and it does not mention support for ledger 11x17in paper, only tabloid 11x17in paper. The picture seems to show that only tabloid paper can be fed. 11x17in should indicate a tabloid format, given that the height is bigger than the width. I wonder what that 'Ledger 11x17in' really means, I would have expected 'Ledger 17x11in' to be coherent with the meaning of 'ledger'. I did a brief review of paper sizes for printing. You observation of Tabloid vs Ledger seems core to this issue. There does not seem to be agreement on usage, some use one or the other and lanscape, portrait to change the view. It is beyond me to decifer the various parties involved in printing: ghostscript, cups. HP et al. http://www.prepressure.com/library/paper-size: this was a starting point for me, there is lots of conflicting usages when I searched the issue. In print preview the image is shown correctly..does not print correctly though. > In print preview the image is shown correctly..does not print correctly though I have to look in the code in more detail, but from the first look I had yesterday, 'print preview' and 'print' use two different KPrinter objects. Pair this to the fact that KPDF decides the page orientation by itself, it may well be that KPDF is doing different things in the two routines (I will have to investigate further). > Do you have also a 'Tabloid 11x17in' option in your printer? If so, do you get > the same result? You didn't reply to this. Could you please double check it? It may actually provide important feedback. Alternatively look for A3 297x420mm paper size. > there is lots of conflicting usages when I searched the issue
Yes, I agree :-)
(In reply to Michele Calgaro from comment #18) > > Do you have also a 'Tabloid 11x17in' option in your printer? If so, do you get > > the same result? > You didn't reply to this. Could you please double check it? It may actually > provide important feedback. Alternatively look for A3 297x420mm paper size. I have ledger no tabloid in kpdf, in evince I have tabloid no ledger. evince prints correctly. Fiddling with this issue using localhost:631 in my browser, I lost ability to print to this printer completely...hmm not robust, also the list of paper sizes would change, no ledger, tabloid, A3 297x420mm paper sizes. I got my printing back by deleting, starting over, using 'hp-setup -i' Greg, thanks for all your feedback so far. I will look into the code more in detail next week. If I need more info I will let you know. Created attachment 2444 [details]
new test drawing
Greg, the attached file is a 2-page drawing made from two copies of your original drawing. The first page is landscape, the second portrait.
When I print I have this result:
1) from Windows (Adobe Reader), both pages print in 11x17in full page: Adobe takes care of rotating the pages and fitting to the paper size
2) from KPDF (Jessie, TDE R14): both pages print in 11x17in full page: pages are rotated and fitted to the correct paper size.
Could you try on your printer and see what happens? Let me know if both pages are printed in 8.5x11in size or if one of them is 11x17in and which one (first or second).
Thanks
Forgot to mention that the print preview displays both pages correctly (full paper size, correctly rotated) (In reply to Michele Calgaro from comment #22) > Created attachment 2444 [details] > new test drawing > > Greg, the attached file is a 2-page drawing made from two copies of your > original drawing. The first page is landscape, the second portrait. > When I print I have this result: > 1) from Windows (Adobe Reader), both pages print in 11x17in full page: Adobe > takes care of rotating the pages and fitting to the paper size > 2) from KPDF (Jessie, TDE R14): both pages print in 11x17in full page: pages > are rotated and fitted to the correct paper size. > > Could you try on your printer and see what happens? Let me know if both > pages are printed in 8.5x11in size or if one of them is 11x17in and which > one (first or second). > > Thanks No change in kpdf printing, both pages print with correct orientation, but not scaled to 11x17. Both view in print preview correctly. In the print dialog > select my printer> properties tab > the orientation choices are greyed out, I use 'evince' to compare results here..both pages print correctly in evince. Glad it works for you...I can only test TDE R14 and Jessie in a vm, no success there either. I purged all printing stuff from Wheezy,cleaned up nay references/leftovers, installed 'tdeprint-trinity' + depends. No change.. I do not understand why evince has different options than kpdf in settings dialogs...?? Greg, thanks for the additional testing. > In the print dialog > select my printer> properties tab > the orientation >choices are greyed out, This is actually intentional in kpdf, since kpdf scans through the pages and detects the best orientation automatically. >I use 'evince' to compare results here..both pages print correctly in evince. >I do not understand why evince has different options than kpdf in settings >dialogs...?? That's the weird thing. I will come back to you again after having a closer look at the code (this week I have worked on other bugs and stuff). Setting the status back to NEW since currently I have not enough continuous time to look at this as I would like to. |