[Libreoffice-bugs] [Bug 154255] Support embedded PDF viewing and zooming as vectorial instead of rasterized image

2023-06-13 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=154255

--- Comment #6 from V Stuart Foote  ---
(In reply to Ole Tange from comment #5)

> 
> But I would really love if I could re-arrange pages like I can with
> PDFarranger.

LibreOffice is *NOT* a PDF editor. And is only a viewer in the sense that we
parse content from the PDF--the pdfium based rasters (no Skia vector canvas
yet), or for the clunky conversion of content to ODF draw objects.

The original PDF is retained, but the rendering to LO document canvas is not
bulk PDF internals. Currently the pdfium based parser works one page at a time,
so you have to split the pages out external to LibreOffice, e.g. PDFtk and add
them in the sequence you need. Scriptable but bug 114234 is open to improve
multi-page PDF.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 154255] Support embedded PDF viewing and zooming as vectorial instead of rasterized image

2023-06-13 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=154255

--- Comment #5 from Ole Tange  ---
(In reply to Heiko Tietze from comment #3)

> And I struggle a bit with the use case. Your Writer document is WYSIWYG, you
> shouldn't expect different zoom level for details.

Every lawyer has a use case, and probably many more people.

We need to import hundreds of pages of PDF files into a single file.

All that will be added is a page number for the total document, and some cross
reference links into each page, so you can easily go from an index to a given
page in the PDF.

The document becomes unwieldly large if each PDF-file is converted to PNG in a
resolution that is readable (i.e. > 200 DPI). Try that with 500 pages, which is
my latest task.

I would love if LibreOffice could be an alternative to PDFarranger
https://github.com/pdfarranger/pdfarranger
So I could merge PDF-files without loss of quality and add small details like a
total page number.

It is perfectly fine if I cannot "enter into" a PDF page, so from a user
perspective the pages could be treated similar to a write protected SVG image.

But I would really love if I could re-arrange pages like I can with
PDFarranger.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 154255] Support embedded PDF viewing and zooming as vectorial instead of rasterized image

2023-03-20 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=154255

--- Comment #4 from medmedin2014  ---
(In reply to Heiko Tietze from comment #3)
> I agree with Stuart that splitting the PDF into drawing objects is not
> efficient on Writer (though working well on Draw; and you can insert the PDF
> via Draw object).
> 
> And I struggle a bit with the use case. Your Writer document is WYSIWYG, you
> shouldn't expect different zoom level for details. So the question boils
> down whether we can dynamically adjust the DPI on loading. And Miklos
> replied with a clear "maybe".

A PDF is simply a vector drawing and is totally different from a raster image,
and it embeds information that should be read at any zoom level like how we can
zoom SVG or text. Draw is too much buggy and never succeed to open any PDF
without any distortion, it's not up yet to the task.

I'm not talking about splitting or converting the whole PDF to vectors and edit
them, I simply asked if possible to view the content of embedded PDFs in high
quality while zooming like how we can view SVG content, is it not possible to
do it using any light PDF viewer like PDF.js to render the high quality view
while zooming inside Writer ?

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 154255] Support embedded PDF viewing and zooming as vectorial instead of rasterized image

2023-03-20 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=154255

Heiko Tietze  changed:

   What|Removed |Added

 CC|libreoffice-ux-advise@lists |heiko.tietze@documentfounda
   |.freedesktop.org|tion.org

--- Comment #3 from Heiko Tietze  ---
I agree with Stuart that splitting the PDF into drawing objects is not
efficient on Writer (though working well on Draw; and you can insert the PDF
via Draw object).

And I struggle a bit with the use case. Your Writer document is WYSIWYG, you
shouldn't expect different zoom level for details. So the question boils down
whether we can dynamically adjust the DPI on loading. And Miklos replied with a
clear "maybe".

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 154255] Support embedded PDF viewing and zooming as vectorial instead of rasterized image

2023-03-20 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=154255

--- Comment #2 from Miklos Vajna  ---
> Not saying it can't be done

My guess would be that similar to how we rasterize EMF/WMF only at the last
minute, we could do the same with PDF as well. It's just not yet done.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 154255] Support embedded PDF viewing and zooming as vectorial instead of rasterized image

2023-03-19 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=154255

V Stuart Foote  changed:

   What|Removed |Added

   See Also||https://bugs.documentfounda
   ||tion.org/show_bug.cgi?id=11
   ||5811
  Component|Writer  |filters and storage
 CC||ashodnakash...@yahoo.com,
   ||libreoffice-ux-advise@lists
   ||.freedesktop.org,
   ||qui...@gmail.com,
   ||vmik...@collabora.com,
   ||vsfo...@libreoffice.org
   Keywords||needsDevAdvice
 Blocks||114233

--- Comment #1 from V Stuart Foote  ---
Of course this is not opened via import, rather inserted via the pdfium filter.
The filter converts to bitmap raster image not to vector.

The PDFIMPORT_RESOLUTION_DPI is an os/DE environment variable that can be set
for each workstation, not necessarily per user.  E.g. on managed Windows
systems via SCCM registry entry, or distributed as a regedit script.

So facilitating zoom to view higher details can already be done via the
environment variable, preset system or on launch.

We have bug 115811 open to allow dynamic set resolution from the UI, possibly
even "one idea is to make this dynamic. That is, re-render the page in higher
DPI as the user zooms in" from c#6

So not at all clear that rendering the PDF to vcl document canvas as vector
would ever make sense for Writer. Though it already is on the Draw canvas when
you 'break' the inserted PDF into disassembled draw objects--that is too
chaotic to work with efficiently (regrouping into meaningful text and layout)
on a text document.

Not saying it can't be done (i.e. working directly to a skia vector canvas),
but
if one really needs the PDF as vector on the Writer canvas, then conversion to
SVG of individual PDF pages *external* to LibreOffice and then insert as SVG
would be the more supportable work flow.

The project is obliged to handle the SVG inserts correctly (it is part of ODF
1.3) no such standard for handling PDF source images--just what pdfium project
libs provide which at the moment for LibreOffice is into bitmap.


Referenced Bugs:

https://bugs.documentfoundation.org/show_bug.cgi?id=114233
[Bug 114233] [META] PDF insert/embed bugs and enhancements
-- 
You are receiving this mail because:
You are the assignee for the bug.