Apache OpenOffice (AOO) Bugzilla – Issue 122176
'Save as PDF' of custom page size outputs wrong size
Last modified: 2013-11-14 21:37:02 UTC
Steps to reproduce: 1) File -> New -> Text Document 2) Format -> Page... 3) Select the 'Page' tab 4) In the 'Paper format' area, set the following properties: Width: 6 in Height: 9 in 5) Click 'OK' 6) File -> Print... 7) Click the 'PDF' button (lower left of dialog) 8) Select 'Save as PDF...' 9) Click 'Save' 10) Open the resulting PDF in Adobe Reader 11) Select File -> Properties... 12) Select the 'Description' tab The page size will be 6.38 x 9.01. Notes: a) Similar steps will reproduce this with a spreadsheet. b) The actual page size is, as best I can tell, 6.375 x 9.014. c) File -> Export as PDF... outputs the correct page size. d) There's nothing special about 6 x 9. The same problem happens with other custom sizes but not with the default 8.5 x 11.
Okular 0.14.3 gives 152.4*228.6 mm. Rev. 1522537 Debian PS steps 6-9 were replaced by click on Export Directly as PDF icon in Standard toolbar.
Thank you for looking into this. You are correct that this will not reproduce under Export to PDF (see note [c] in the original bug report). It only reproduces with the steps given. My understanding is that these are two different code paths. Export to PDF is not available to us due to other problems in that functionality. (See http://forum.openoffice.org/en/forum/viewtopic.php?f=7&t=43167.)
Workaround: Add a custom paper size via Page Setup... (requires an app other than OpenOffice) and use that when printing to PDF format via the Paper Handling options.
I was able to reproduce the problem exactly by following the steps in the original post. I was using Writer 4.0.1 on Windows 7 Enterprise (SP1). The bug was averted by clicking on the "Export Directly as PDF" button at the top of the page.