Bug 147540 - Feature request: Rotate entire PDF document in Draw
Summary: Feature request: Rotate entire PDF document in Draw
Status: RESOLVED WONTFIX
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: needsUXEval
Depends on:
Blocks: PDF-Import-Draw
  Show dependency treegraph
 
Reported: 2022-02-19 19:39 UTC by Will
Modified: 2022-02-21 08:03 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Will 2022-02-19 19:39:40 UTC
Description:
Hi, Thank you for all your hard work put into Libre office, I really enjoy what you make and appreciate your

One feature that seems to be missing is a way to easily rotate pages when editing a PDF, I am aware you can rotate the content and change the page dimensions / set to landscape but there doesn't seem to be an easy way to rotate it if a document has been scanned in the wrong orientation which it seems all other popuklar commercial PDF editors have. 

I understand that Draw is not intended solely to be a PDF editor and the other PDF editing features it has are excellent.

Both Adobe and Foxit have a button at the top that will rotate the document or other highlighted documents 90 or 180 degrees left or right.

Thank you

Actual Results:
Have to change page orientation and content orientation separately, have to reposition contents and have to do this in every page for PDF with many pages. 

Expected Results:
Highlighted PDF pages can be rotated left or right 90 or 180 degrees with a button in the toolbar. 


Reproducible: Always


User Profile Reset: No



Additional Info:
Ideally have a button or right click that can rotate a single page or all pages with contents in a PDF document.
Comment 1 Will 2022-02-19 19:41:18 UTC
* I really enjoy what you make and appreciate your efforts in contributing to Libre office.
Comment 2 V Stuart Foote 2022-02-20 00:50:16 UTC
(In reply to Will from comment #0)
> ...
> I understand that Draw is not intended solely to be a PDF editor and the
> other PDF editing features it has are excellent.
> 
> Both Adobe and Foxit have a button at the top that will rotate the document
> or other highlighted documents 90 or 180 degrees left or right.
> 

Sorry but Draw (or one of the other LO modules that will filter import from PDF) is NOT a PDF editor. LibreOffice is not a PDF editor--full stop.

Once a PDF has been filter imported and its content parsed to document canvas, its content can be rotated, or reoriented. But that is a function of the Draw (or other module) canvas handling. It no longer has ANYTHING to do with the source PDF. Follow-on export from LO back to PDF will corrupt an original PDF if you overwrite it and think of LO as an editor. DON'T DO IT!

Rotation / reorientation of a PDF page imported with the pdfium project libs is trivial--but is limited to single PDF page import handling as an image.

All that said, an enhancement to module handling of PDF sourced images (pdfium-based import) or full canvas of PDF source Draw objects (poppler-based import) on canvas is probably feasible.

@Miklos? Worth doing, or toss it back => WF
Comment 3 Miklos Vajna 2022-02-21 07:42:18 UTC
I don't have a strong opinion on this. Rotating all of your Draw pages with their content is indeed not easy, and perhaps is worth supporting.

Your statement about Draw not being a PDF editor is sensible, good to set expectations.
Comment 4 Heiko Tietze 2022-02-21 08:03:55 UTC
Agree to the WF.

But what works surprisingly well is to rotate with an external tool (using "pdftk input.pdf cat 1-endeast output output.pdf" on Linux) and to load this document in Draw.