Bug 142233 - Long PDF in section not shown
Summary: Long PDF in section not shown
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.0.5.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:pdf
Depends on:
Blocks: PDF PDF-Import-Writer
  Show dependency treegraph
 
Reported: 2021-05-12 11:14 UTC by Nicolas
Modified: 2021-05-17 10:40 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:
Regression By:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas 2021-05-12 11:14:42 UTC
Description:
When I insert a new section, I can link it to an external file. But when it's a PDF file, the section obtained spread on the right number of pages but is completely empty.

Steps to Reproduce:
1.Insert / Section / Link
2.Choose a PDF file
3.See the empty section...

Actual Results:
Section empty

Expected Results:
PDF displayed in the section, eventually with the possibility to choose pages to display


Reproducible: Always


User Profile Reset: No



Additional Info:
It's an important feature to be able to compile PDF files into a LibreOffice master document, like in FrameMaker...
Comment 1 Timur 2021-05-12 12:39:56 UTC
I guess this can be confirmed as an enhancement.
Comment 2 V Stuart Foote 2021-05-12 15:51:02 UTC
Not following the work flow.

A PDF can be link inserted into master document--but has no preview, nor page representation taken from the PDF. PDF will open in Draw when selected from the master document navigator. Multi-page rendering of the PDF by the Draw import filters (warts and all as to fidelity to original).

Otherwise PDF pages can be inserted into a defined frame in a section. Or directly into a section via the Insert -> Image filter with high fidelity.

And, if link inserted into a Writer document as a new section, with Insert -> Section with Link and a file selection of the PDF, the PDF pages will render as blank place holder pages--the filter import simply does not render the draw shapes to VCL canvas within a section (even if selecting the "PDF - Portable Document Format (Writer) (.pdf)" filter from the file manager).

So note clear what is desired--filter rework to render Draw shape objects to document canvas within Section, or handling of linked PDF within Master Document.

Either case rather dubious practice as LibreOffice is not a PDF editor/viewer; so binding PDF into a master document (to open in LO Draw) is not a reasonable workflow.

Eventual work on bug 114234 for better handling of multipage document sources, e.g. PDF or TIFF, and adjustment to the ipdf "pdfium" based import filter as for bug 115811 are more in line with scope of LibreOffice handling of PDF source content within our ODF Documents.
Comment 3 Heiko Tietze 2021-05-17 10:40:15 UTC
Seems to depend on the PDF. Tried with some large document and could reproduce the issue (Insert > Section: [x] Link, File Name: [Foo] = some empty pages). But saving dummy text as PDF both short df+f3 or long (two pages with some formatting) works as expected.