Bug 156087 - Add an "all pages" view mode to Draw to scroll through all pages in canvas (without needing Page Pane)
Summary: Add an "all pages" view mode to Draw to scroll through all pages in canvas (w...
Status: RESOLVED WONTFIX
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL: https://ask.libreoffice.org/t/multipl...
Whiteboard:
Keywords: needsUXEval
Depends on:
Blocks: PDF-Import-Draw
  Show dependency treegraph
 
Reported: 2023-06-28 15:57 UTC by Kristopher Thomas
Modified: 2023-07-14 07:20 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments
Example .pdf only displaying one page out of 8 (382.29 KB, application/pdf)
2023-06-28 15:57 UTC, Kristopher Thomas
Details
Screenshot (205.31 KB, image/png)
2023-06-28 20:27 UTC, m_a_riosv
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kristopher Thomas 2023-06-28 15:57:59 UTC
Created attachment 188121 [details]
Example .pdf only displaying one page out of 8

Hello,

TL;DR - my LibreOffice Draw opens .pdfs but only detects and displays the first page, sometimes cutting off the bottom. I need a .pdf editor that can work with full .pdfs or guidance for Libre.

I used Open Office for years, but the lack of .docx support was something I could no longer accept (my school and work won't accept .doc WIN97 files). I switched to LibreOffice and it's been fine, until I started working with .pdfs. They open in Draw (not sure if that's the right app, but that's what happens) and it will only display one page - the first page - of any .pdf. I opened multiple .pdfs with both Libre, Google Chrome, and a basic Adobe Acrobat so I know the files have multiple pages.

I googled searched for answers but everything I found is focused on "one page view" issues, not the app literally only detecting and displaying one page (the bottom right page counter is always 1:1). This is on a Windows 11 laptop. I use open source tools for as much as possible. Please advise. and thank you.

Version: 7.5.4.2 (X86_64) / LibreOffice Community

Build ID: 36ccfdc35048b057fd9854c757a8b67ec53977b6

CPU threads: 16; OS: Windows 10.0 Build 22621; UI render: Skia/Vulkan; VCL: win

Locale: en-US (en_US); UI: en-US

Calc: CL threaded
Comment 1 m_a_riosv 2023-06-28 20:27:15 UTC
Created attachment 188123 [details]
Screenshot

Open fine for me with 
Version: 7.5.4.2 (X86_64) / LibreOffice Community
Build ID: 36ccfdc35048b057fd9854c757a8b67ec53977b6
CPU threads: 16; OS: Windows 10.0 Build 22621; UI render: default; VCL: win
Locale: es-ES (es_ES); UI: en-US Calc: CL threaded

Please test in safe mode, Menu/Help/Restart in Safe Mode
Comment 2 Stéphane Guillou (stragu) 2023-06-29 00:26:38 UTC
Make sure you have View > Page Pane turned on so you can navigate all pages. The canvas only displays one page at a time.
Comment 3 Kristopher Thomas 2023-06-29 00:39:43 UTC
Thank you. I saw the page pane and closed it as I'm used to just being able to continously scroll down; not as an endless page, but page after page with no pane needed. That's what I'm trying to get to work.
Comment 4 QA Administrators 2023-06-29 03:13:21 UTC Comment hidden (obsolete)
Comment 5 Stéphane Guillou (stragu) 2023-06-29 17:40:52 UTC
The way to navigate pages in Draw is to use the Page Pane. It is a diagram / drawing editor, and the PDF import is only secondary.

(The "1:1" in the status bar is the scaling factor, not the page count.)

If you want a continuous view of the pages, you can import the PDF into Writer:
- Open LO
- Open... > choose the "PDF (Writer)" filter in the dropdown, pick your file.

However, and regardless of PDF import or not, I see others asking for a similar feature or who would benefit from one:
- https://www.reddit.com/r/libreoffice/comments/fh27wz/draw_see_all_pages_at_once/
- https://ask.libreoffice.org/t/multiple-page-view-in-lo-drawing/75952
- https://ask.libreoffice.org/t/in-draw-i-have-a-6-page-document-but-it-only-lets-me-see-1-page-i-may-of-clicked-on-something-and-now-cannot-see-the-whole-document/46606
- https://ask.libreoffice.org/t/how-can-i-see-and-edit-two-pages-in-draw/13635
- https://forum.openoffice.org/en/forum/viewtopic.php?t=98595

So I'll copy the Design team in to have their opinion on an enhancement request.

I thought I would find a duplicate but couldn't.
Comment 6 V Stuart Foote 2023-06-29 19:28:44 UTC
Confirm that yes the sd canvas offers no multi-page view for Draw or Impress. But would note that is the normal workflow OOo evolved. A drawing canvas or a presentation slide is manipulated one at a time. The Page/Slide pane provides a sorter that compliments that workflow.

Can not justify the dev effort that would be needed to provide a multi-page canvas view for either Draw or Impress as there is no workflow that requires the view.

IMHO => WF

Otherwise--to state the obvious--LibreOffice is not a PDF editor!  We import via filter the elements making up the PDF publication and render them to document canvas.

Depending on the import filter, we either parse content of the entire PDF into ODF drawing objects placed on multiple pages, or we parse the content of a single PDF page into a raster image placed onto a single ODF page.

That is the difference between the internal LO Import and our Insert filters.

The pdfium project based insert filter works one page at a time and currently only the first page. The import filters work against the entire PDF and renders the PDF pages as individual ODF drawing, presentation or text document pages (select the corresponding filter for the module needed).

By default a PDF will filter import to Draw, pages of the PDF will render as drawing pages.  Importing to Impress will render the PDF pages as presentation slides.  The sd module's Pages or Slides pane give "filmstrip" style view of the page/slide previews. Once imported, you can delete a Draw page or Impress slide.

When import to a Writer ODF text document, the drawing objects from the PDF will be placed onto document pages. Normal 'Single-page', 'Multi-page', and 'Book'  view modes of the document are available familiar to other PDF readers. You can select and delete page content/pages from Writer as well.

Additional work is needed for both import and insert filters to be able to select a range of pages from a PDF (e.g. bug 114234).

While publishing document content back from LO to PDF is an entirely different set of print filters.  And while you can overwrite the original PDF, it is ill-advised as it is highly destructive!
Comment 7 Shu Zhang 2023-06-30 20:15:38 UTC
I looked at the feature you mentioned, and I can see the drawing doesn't have the function just scroll down to change pages, but the writer does have the function, if the draw is the default way to open the pdf I think we need to add a function to be able to move from page to page without clicking on the page pane.
Comment 8 Regina Henschel 2023-07-04 13:35:15 UTC
You need not use the mouse to go to previous or next page. If nothing is selected in the work window, PgUp and PgDn keys go to previous or next page respectively.
Comment 9 Eyal Rozenberg 2023-07-05 21:41:42 UTC
(In reply to Kristopher Thomas from comment #0)
> TL;DR - my LibreOffice Draw opens .pdfs but only detects and displays the
> first page, sometimes cutting off the bottom.

1. Draw detects all pages.
2. Draw displays one page at a time, since it's an editor for drawings - not for multi-page documents fundamentally. The mental model of a Draw document is like a painter's carrying case for their (one-page) drawings.
3. I can't reproduce the "cutting off the bottom"; and - that would be a separate bug. So, let's ignore that part in this bug, and please post the separate bug if you can provide reproduction instructions for it, ignoring there the issue of multiple pages.

> I need a .pdf editor that can work with full .pdfs ...  I
> switched to LibreOffice and it's been fine, until I started working with
> .pdfs. They open in Draw (not sure if that's the right app, but that's what
> happens) 

The document you attached should be opened in Writer, not in Draw. It is the Writer module of LO which should handle documents which constitute a sequence of pieces of textual-ish content across multiple pages rather than distinct pages. The "problem" is that LO defaults to opening PDFs in Draw, and almost hides the fact that you can open them otherwise. You can! - but you need to explicitly choose the PDF-in-Writer import filter. See also:

Bug 141732: Each module should default to its own PDF import filter

When you open your file in Writer, you will be faced with other deficiencies of LO (Writer) as a PDF editor: Writer does not make any attempt to constitute text paragraphs and other sequential structure; see bug 151577 and bug 32249 among others.

> I used Open Office for years, but the lack of .docx support was something I
> could no longer accept (my school and work won't accept .doc WIN97 files).

OpenOffice is essentially an abandoned project, and has been for many years. It's good that you switched.


Considering what I said above, I believe this bug is either a dupe of 141732 (in the sense that solving that one will essentially get you a PDF opening in a module in which you can scroll among the pages), or INVALID.

Having said that - it _is_ a UX problem IMHO that when you open a multi-page PDF in Draw, you are not guaranteed to see at least one of the Navigator and the Pages pane. Or something close to that, making it clear how you could see the other pages.
Comment 10 Heiko Tietze 2023-07-14 07:20:20 UTC
We discussed the topic in the design meeting. To summarize the comments PDFs are not supposed to open like in any random PDF viewer, the Page Pane offers a preview, and Draw does not mean to have continuous content. We provide option to open PDF in Writer, as an alternative workflow (admittedly it is tedious). So the verdict is to suggest not to implement this kind of view.