Bug 77650 - PDF Export dialog lacks options to position comments (as on Print dialog, e.g. in margin)
Summary: PDF Export dialog lacks options to position comments (as on Print dialog, e.g...
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Printing and PDF export (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: Other All
: medium enhancement
Assignee: Samuel Mehrbrodt (allotropia)
URL:
Whiteboard: target:7.5.0
Keywords: filter:pdf, needsDevEval, topicUI
: 91539 103376 (view as bug list)
Depends on:
Blocks: PDF-Export-Options-Dialog
  Show dependency treegraph
 
Reported: 2014-04-18 16:39 UTC by Gerry
Modified: 2022-11-28 10:29 UTC (History)
6 users (show)

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


Attachments
pdfgeneralpage.ui (modified) (42.46 KB, application/x-designer)
2014-05-17 07:50 UTC, Gerry
Details
Screenshot of modified PDF export dialog (for Writer).png (74.49 KB, image/png)
2014-07-02 20:41 UTC, Gerry
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gerry 2014-04-18 16:39:09 UTC
It is so good to have Writer being able to print and PDF export documents with comments in the margin (bug 36815). Whereas the printing of documents with comments is straight-forward, the usability of PDF exporting of documents with comments needs to be improved to actually make it usable for end users.

Current situation:
In the PDF export dialog "File" -> "Export as PDF", there is an option "Export comments". This, however, exports the comments as PDF comments (according to the PDF spec). Currently, from the PDF export dialog the user is not able to export PDFs with comments in the margin. For that, the user needs to go to "Tools" -> "Options" -> "LibreOffice Writer" -> "Print" and enable there "Comments, Place in Margin". Then, the user can use again the PDF export dialog to correctly export PDFs with comments in the margin. But, the user has to *switch off* the option "comments" in that dialog in order to not get the comments twice (as PDF comments and in the margin). If the user wants to PDF export the next document without comments, he/she has to do the entire procedure again. UX needs to be improved.

Improvement idea:
As all features actually do exist, the improvement should be quite easy and limited to UI only (I hope so). Change the dialog "File" -> "Export as PDF" to:

 _______________
|Export comments|
  o Do not export comments
  o Place as PDF comments
  o Place in margin
  o Place at end of document
  o Place at end of page
  o Export only comments

A pulldown menu is probably the best solution to have these six options available.
The second option is the current (in LO 4.2.x) default option when the user checks "Export comments" in the export PDF dialog.
The options 3 to 6 are the options currently (in 4.3 nightly) found only in the "Options" -> "LibreOffice Writer" -> "Print" dialog.
Comment 1 Gerry 2014-04-18 16:42:58 UTC
Hi Caolan, I CCed you to this small enhancement request for the usability improvement of PDF export of documents with comments in the margin. 

I assume and hope that this is mostly a UI change. I think it would increase usability of the feature a lot.
Comment 2 Gerry 2014-05-17 07:50:25 UTC
Created attachment 99203 [details]
pdfgeneralpage.ui (modified)

Hi Caolan, please find attached a slightly modified pdfgeneralpage.ui in order to improve usability of PDF export of Writer documents with comments. I am not a programmer, but I hope that this is somewhat helpful.

I took the dialog from here (http://cgit.freedesktop.org/libreoffice/core/tree/filter/uiconfig/ui) and I added a section in line 546-711 with the id "comments_writer". As far as I understand, all applications use exactly the same dialog, but are not calling all of the entries/IDs. As the Writer dialog now needs many more options, I left the ID "comments" like it was (to be called from Calc, Draw, Impress) and the new "comments_writer" to be called from Writer.

I know that changes in the UI-file are just a small part of the overall changes for this enhancement, but I have no clue how applications are connected to the UI-files. I hope that someone is willing to take over for this part.
Comment 3 Gerry 2014-07-02 20:41:12 UTC
Created attachment 102160 [details]
Screenshot of modified PDF export dialog (for Writer).png

Attached is a screenshot of the modified PDF Export dialog for Writer from comment 2. (at least this is the way how Glade displays it).

I hope someone is interested to implement the export of comments inside the margin also into the PDF Export dialog. This would be super! :-) I hope the .ui file is helpful for this.
Comment 4 Gerry 2015-01-12 18:18:03 UTC
EasyHack? Isn't this enhancement request "Improve usability of PDF export of Writer documents with comments" one that can be added to the EasyHacks list? Thanks!
Comment 5 Gerry 2015-06-27 21:12:05 UTC
needsDevEval: Could one of the developers please have a quick look at this enhancement request, whether it is trivial or an easy hack? Thanks a lot!

@Caolan: Since you developed the code for printing of documents with comments, maybe it is easy for you to estimate the difficulty/time requirement of this request to also have a UI for PDF export of docs with comments. Thanks.
Comment 6 Robinson Tryon (qubit) 2015-12-13 11:23:49 UTC Comment hidden (obsolete)
Comment 7 Gerry 2016-01-09 12:36:42 UTC
@Caolán: Since you wrote the code around "printing documents with comments inside the margin", could you please give your opinion, whether this enhancement is an Easy Hack or not. Is it just about touching the PDF Export UI or much more complicated? 

Thanks!
Comment 8 Cor Nouws 2016-10-21 08:10:23 UTC
*** Bug 103376 has been marked as a duplicate of this bug. ***
Comment 9 Cor Nouws 2016-10-21 08:20:26 UTC Comment hidden (obsolete)
Comment 10 Cor Nouws 2016-10-21 08:22:36 UTC
(In reply to Cor Nouws from comment #9)

> Would it be an idea to split this:
>  - do not mess setting in Tools > Options with that in PDF dialog

Hmm, that should be bug 79232, isn't it?

>  - more options as you suggest in your initial comment?
Comment 11 Gerry 2016-10-21 17:03:05 UTC
Hi Cor, thanks a lot for looking into this bug.

The main message from my original bug report above is that all possible options for PDF export with comments should be accessible via the "File" -> "Export as PDF" dialog. Currently, most of the options are not accessible from this dialog, but hidden somewhere in the LO settings.

The different options are:

|Export comments|
  o Do not export comments
  o Place as PDF comments
  o Place in margin
  o Place at end of document
  o Place at end of page
  o Export only comments

Attached pdfgeneralpage.ui file shows how the dialog could look like.

Did my response clarify your question?
Comment 12 Cor Nouws 2016-10-21 18:10:52 UTC
Hi Gerry,
(In reply to Gerry from comment #11)

> Attached pdfgeneralpage.ui file shows how the dialog could look like.

Very clear - sorry that I messed up the summary with another bug in this area. Corrected that.
The dialog example is clear and quite easy. The harder part of course is all needed code..
Comment 13 Gerry 2016-10-22 09:09:54 UTC
(In reply to Cor Nouws from comment #12)
> The dialog example is clear and quite easy. The harder part of course is all
> needed code..

Thanks a lot Cor. 

To me - as a user - it seems that the features are actually there in LO, but that they are not easily accessible for the users (PDF export dialog).

By the way, Caolán had implemented the feature for printing of documents with comments inside margin. I don't know about his rationale why he did not implement this feature also for the PDF export dialog.
Comment 14 Cor Nouws 2016-10-22 09:29:02 UTC Comment hidden (obsolete)
Comment 15 Timur 2020-09-14 11:38:15 UTC
*** Bug 135371 has been marked as a duplicate of this bug. ***
Comment 16 Timur 2022-07-15 14:24:49 UTC
*** Bug 91539 has been marked as a duplicate of this bug. ***
Comment 17 Commit Notification 2022-11-28 10:26:10 UTC
Samuel Mehrbrodt committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/19e3bab1a8def52d9a60f67bd87697e828e37773

tdf#77650 Add option to place comments in margin (PDF Export)

It will be available in 7.5.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.