Bug 120708 - Error rendering different page sizes and orientation when importing PDF files
Summary: Error rendering different page sizes and orientation when importing PDF files
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:pdf
: 131503 143473 (view as bug list)
Depends on: 49787
Blocks: PDF-Import-Draw
  Show dependency treegraph
 
Reported: 2018-10-19 13:58 UTC by me
Modified: 2022-06-16 22:45 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments
Writer source document used to generate the PDF, and generated PDF (16.90 KB, application/x-7z-compressed)
2018-10-19 13:58 UTC, me
Details
example with 4 pages A4 A3 landcape and A4 A3 portrait made with LO writer (11.93 KB, application/pdf)
2020-04-07 10:48 UTC, paulystefan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description me 2018-10-19 13:58:53 UTC
Created attachment 145827 [details]
Writer source document used to generate the PDF, and generated PDF

When importing a PDF file containing different page layouts, only one page layout id assumed when rendering the document.

The attached file example contains 3 pages, as follows:
- page 1: A4 portrait
- page 2: A3 landscape
- page 3: A4 portrait

Sometimes it seems that if pages contain images (documents generated by scanners), the assumed page format is A4, and A3 pages are just truncated preserving only the left part of the A3 landscape page.

Attached you will find also the Writer source document used to generate the PDF document imported in Impress for the test.
Comment 1 Buovjaga 2019-02-17 16:53:19 UTC
Repro, already in 3.3.0 (Win 10).

Arch Linux 64-bit
Version: 6.3.0.0.alpha0+
Build ID: e77beebb0d839f5dc0d4f9c4fd7cc9b7ccfd0175
CPU threads: 8; OS: Linux 4.20; UI render: default; VCL: gtk3; 
Locale: fi-FI (fi_FI.UTF-8); UI-Language: en-US
Calc: threaded
Built on 16 February 2019
Comment 2 paulystefan 2020-04-07 09:39:02 UTC Comment hidden (obsolete)
Comment 3 paulystefan 2020-04-07 09:39:21 UTC Comment hidden (obsolete)
Comment 4 paulystefan 2020-04-07 10:48:27 UTC
Created attachment 159388 [details]
example with 4 pages A4 A3 landcape and A4 A3 portrait made with LO writer

in this pdf a4 and a3 in landscape and portrait for test pdf import in Draw

in Draw only one paper format possible

in Writer for each page a different paper format possible
Comment 5 paulystefan 2020-04-07 10:51:34 UTC
A workaround is doing more documents with different paper sizes.

4 paper sizes -> 4 draw docs or more in a global document
Comment 6 paulystefan 2020-04-07 11:19:56 UTC
with the possible workaround of comment 5

a preview window with choice should be available

the old way:  all in one Draw document with one-page size

the new way:  all in one Global ODM-document with Draw sections in different page sizes
Comment 7 Buovjaga 2020-06-19 15:54:48 UTC
*** Bug 131503 has been marked as a duplicate of this bug. ***
Comment 8 paulystefan 2020-06-21 23:43:22 UTC
Version: 7.0.0.0beta 2 x64 win 10 x64

repro

the new way should be:  
all in one Global ODM-document with Draw sections in different page sizes
Comment 9 paulystefan 2021-05-17 14:58:08 UTC
repro 

Version: 7.1.3.2 (x64) / LibreOffice Community
Build ID: 47f78053abe362b9384784d31a6e56f8511eb1c1
CPU threads: 8; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: de-DE
Calc: CL
Comment 10 paulystefan 2021-08-06 00:58:10 UTC
repro in 

Version: 7.2.0.2 (x64) / LibreOffice Community
Build ID: 614be4f5c67816389257027dc5e56c801a547089
CPU threads: 8; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: de-DE
Calc: CL
Comment 11 Kevin Suo 2021-08-22 08:30:36 UTC
This is due to the current limitation as discussed in bug 49787.

The different page size / orientation etc can only be imported correctly if the draw document allows them.
Comment 12 Aron Budea 2021-08-22 13:19:07 UTC
*** Bug 143473 has been marked as a duplicate of this bug. ***
Comment 13 paulystefan 2022-06-16 22:45:27 UTC
Maximum paper size of masterpiece in user mode is quadratic area 600 cm to 600 cm.

So different sizes of papers should be possible.

Work around is import of pdf by different draw files with their sizes.

PDF can also divised before in different pdf their format.