diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2017-05-25 16:37:04 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2017-05-31 16:18:42 +0200 |
commit | 50f309b15f4f47cb357fff04503390f65ae08de1 (patch) | |
tree | 80e0240ea3de04b350f1e90b98ea9f46c7f11240 /include | |
parent | ba3f665270006ced34292cd47eabe771a4878869 (diff) |
tdf#108056 PDF export: work with double page size
Our coordinate system has the origo in the top left corner, PDF's one is
at the bottom left corner. So the page height affects the coordinate of
all widths and y positions. That page width is 870.25 in the case of the
bugdoc, but it was handled as 870 due to the integer rounding. The
coordinates and heights are now closer to the expected ones.
(cherry picked from commit a05dc747caf5b8fef6bd95a999cb6098f2b4dbc7)
Conflicts:
include/vcl/pdfwriter.hxx
Change-Id: I9c7d77298df3850bbc170c9ace18120900d7e3fa
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/pdfwriter.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/vcl/pdfwriter.hxx b/include/vcl/pdfwriter.hxx index f4dba18efc84..5f1e45f6cfff 100644 --- a/include/vcl/pdfwriter.hxx +++ b/include/vcl/pdfwriter.hxx @@ -693,7 +693,7 @@ The following structure describes the permissions used in PDF security Colors and other state information MUST be set again or are undefined. */ - void NewPage( sal_Int32 nPageWidth, sal_Int32 nPageHeight, Orientation eOrientation = Inherit ); + void NewPage( double nPageWidth, double nPageHeight, Orientation eOrientation = Inherit ); /** Play a metafile like an outputdevice would do */ struct PlayMetafileContext |