Bug 116373 - PDF file very slow to open (Acrobat reader opens it immediately)
Summary: PDF file very slow to open (Acrobat reader opens it immediately)
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
6.0.0.3 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 146924 (view as bug list)
Depends on:
Blocks: PDF-Import-Draw
  Show dependency treegraph
 
Reported: 2018-03-12 21:40 UTC by jan.prochaska
Modified: 2022-01-22 20:55 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
PDF file (8.90 MB, application/pdf)
2018-03-12 21:41 UTC, jan.prochaska
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jan.prochaska 2018-03-12 21:40:35 UTC
Description:
The attached PDF file takes several minutes to open.
The same file opens in Acrobat reader almost immediately.

Steps to Reproduce:
1. Start LibreOffice (I've used soffice.exe from command line)
2. Open the attached file.


Actual Results:  
The file opens after 3 minutes.

Expected Results:
Faster opening (several seconds expected).


Reproducible: Always


User Profile Reset: No



Additional Info:


User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:59.0) Gecko/20100101 Firefox/59.0
Comment 1 jan.prochaska 2018-03-12 21:41:36 UTC
Created attachment 140595 [details]
PDF file
Comment 2 V Stuart Foote 2018-03-13 05:12:45 UTC
LibreOffice is not a PDF editor/viewer. This 209 page PDF document is being filter imported to multiple Draw pages with content on each page being independently rendered to Draw objects. That filter action is inherently slow--and is not at all what a PDF viewer does.

The pdfium based insert filter will render the 1st page of the document to a LibreOffice document canvas immediately.
Comment 3 jan.prochaska 2018-03-13 14:07:10 UTC
Dear Stuart,

thank you for the explanation.
The only question I have, is regarding the pdfium filter you mention - "The pdfium based insert filter will render the 1st page of the document to a LibreOffice document canvas immediately."
Is it enabled by default, or is it something that can be enabled to speed up the display.
Sorry if I misunderstood your response.

Best regards,
Jan
Comment 4 V Stuart Foote 2018-03-13 15:48:48 UTC
(In reply to jan.prochaska from comment #3)
> ...
> thank you for the explanation.
> The only question I have, is regarding the pdfium filter you mention - "The
> pdfium based insert filter will render the 1st page of the document to a
> LibreOffice document canvas immediately."
> Is it enabled by default, or is it something that can be enabled to speed up
> the display.

There are two filter methods to work with PDF source content. One is the pdfio "import" filter. It will extract the structure of the PDF and render them as LibreOffice Draw objects (with varying fidelity). The other pdfium based "insert" filter treats content in a PDF as an image source. At the moment there is no UI/API implemented to target other than the first page of the PDF. The fidelity to the original PDF is very high, but the resolution is a bit low (currently 200ppi). Both facets of the pdfium filter are on the dev's list.

Both filters are enabled by default, but are reached with different controls in the UI.  The pdfio "import" filter is used when you open a PDF from the OS. By default it will open into Draw, but the filter can target other LibreOffice modules. Alternatively, the pdfium "insert" filter is used just when inserting a PDF source as an image, done from Insert -> Image.  

> Sorry if I misunderstood your response.
> 

No worries, I probably was not clear enough.
Comment 5 jan.prochaska 2018-03-13 16:28:58 UTC
OK, all clear. Thanks for the explanation.
Comment 6 V Stuart Foote 2022-01-22 20:46:07 UTC
*** Bug 146924 has been marked as a duplicate of this bug. ***