Issue 122176

Summary: 'Save as PDF' of custom page size outputs wrong size
Product: General Reporter: office
Component: uiAssignee: AOO issues mailing list <issues>
Status: UNCONFIRMED --- QA Contact:
Severity: Normal    
Priority: P3 CC: elish, issues, jhaarbau
Version: 3.4.1   
Target Milestone: ---   
Hardware: Mac   
OS: Mac OS X 10.6   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---

Description office 2013-04-26 22:23:20 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.

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.
Comment 1 Edwin Sharp 2013-09-16 14:52:34 UTC
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.
Comment 2 office 2013-09-18 18:51:06 UTC
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
Comment 3 office 2013-11-02 19:19:27 UTC
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.
Comment 4 James H 2013-11-14 21:37:02 UTC
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.