Bug 408271 - Print-to-PDF defaults to A4 regardless of locale or original document size
Summary: Print-to-PDF defaults to A4 regardless of locale or original document size
Status: RESOLVED DUPLICATE of bug 252596
Alias: None
Product: okular
Classification: Applications
Component: printing (show other bugs)
Version: 1.7.1
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-06-04 02:13 UTC by Matthew Trescott
Modified: 2021-08-04 15:00 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Sample document for testing (9.03 KB, application/pdf)
2019-06-04 02:13 UTC, Matthew Trescott
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Trescott 2019-06-04 02:13:00 UTC
Created attachment 120543 [details]
Sample document for testing

SUMMARY
The title pretty much says it all. Personally, I feel that since Okular aims to be a viewer for many more types of files other than PDF (EPUB, ODF, etc.) it should be able to act as a one-to-one converter to PDF. For example, you should be able to open an PostScript file with many different page sizes and use Okular's Print-to-PDF function to create an identical PDF, with the page sizes preserved.

However, I can also understand the reasoning behind the current default setting. It also makes sense that using Print-to-PDF would force the document to fit into a consistent, standard paper size. If this remains the default, however, the default paper size should be dependent on locale (en_US should have Letter for example).

STEPS TO REPRODUCE
1. Open the attached PDF.
2. Go to File > Print and select Print to PDF.
3. Hit "Print" and observe the output.

OBSERVED RESULT
The Letter-size document produces an A4-size PDF.

EXPECTED RESULT
The PDF produced via Print-to-PDF is Letter-sized for either of the following reasons:
1. The original document was Letter-sized, and the original document's page size(s) are preserved, OR
2. Letter is the default paper size for my locale (en_US).

SOFTWARE/OS VERSIONS
KDE Frameworks Version: 5.58.0
Qt Version: 5.12.3
Comment 1 Matthew Trescott 2019-06-04 02:22:13 UTC
Note: split from https://bugs.kde.org/show_bug.cgi?id=406237
Comment 2 Nate Graham 2019-06-05 15:36:19 UTC

*** This bug has been marked as a duplicate of bug 252596 ***
Comment 3 Matthew Trescott 2019-06-05 16:20:14 UTC
I don't think this is a duplicate. IIRC you can set it to Letter and it works. This is about changing the default.
Comment 4 Nate Graham 2019-06-05 16:24:08 UTC
My reasoning was that it's a duplicate in that fixing Bug 252596 will automatically fix this too.

From your other bug I see you're having a hard time making it print in sizes that are not A4 in general, so I suspect that's the proximate cause of this, rather than a bad hardcoded default (I could be wrong though).
Comment 5 Clément 2021-08-04 14:59:40 UTC
(In reply to Matthew Trescott from comment #3)
> I don't think this is a duplicate. IIRC you can set it to Letter and it
> works. This is about changing the default.

I agree that this would be extremely useless. I use letter all the time, and always have to go in the settings to change the format. Being able to set the default, or having the last choice being preserved, would be a big help.
Comment 6 Clément 2021-08-04 15:00:02 UTC
(In reply to Clément from comment #5)
> (In reply to Matthew Trescott from comment #3)
> > I don't think this is a duplicate. IIRC you can set it to Letter and it
> > works. This is about changing the default.
> 
> I agree that this would be extremely useless. I use letter all the time, and
> always have to go in the settings to change the format. Being able to set
> the default, or having the last choice being preserved, would be a big help.

useful*, sorry.