Bug 88223 - Font for exported comments not properly handled.
Summary: Font for exported comments not properly handled.
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Printing and PDF export (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium critical
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:pdf
Depends on:
Blocks:
 
Reported: 2015-01-09 07:41 UTC by Terry Corbet
Modified: 2015-12-17 05:58 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Simple Text Document (10.15 KB, application/vnd.oasis.opendocument.text)
2015-01-13 03:56 UTC, Terry Corbet
Details
Simple Text Document exported to PDF (10.40 KB, application/pdf)
2015-01-13 03:58 UTC, Terry Corbet
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Terry Corbet 2015-01-09 07:41:20 UTC
I have inserted comments in an ordinary text document and tried to get bold style on some portion of the comment using the toolbar. In LibreOffice, the bolding of the text is correctly displayed in its version of a comment.  However, when exported to PDF, the bold (or italic) style is not present.

I have also used the LibreOffice feature for formatting all comments to specify a specific font size and style.  Inside LibreOffice, it is perfect, but upon export to PDF -- even when specifying via the File Properties Option that embedded fonts should be passed to the PDF, the font face and style are NOT honored in the PDF version as displayed by Adobe Reader.

Interestingly, if I were willing to live with the "In Margin" option, which I am not, I do notice that in that mode, the resulting PDF document does get a comment displayed in the correct font and face.  So, I know you know how to do it, but it is not being done in the required case of exporting comments that will be displayed in a popup box by Adobe Reader.
Comment 1 Robinson Tryon (qubit) 2015-01-12 09:29:30 UTC
(In reply to Terry Corbet from comment #0)
> I have inserted comments in an ordinary text document and tried to get bold
> style on some portion of the comment using the toolbar. In LibreOffice, the
> bolding of the text is correctly displayed in its version of a comment. 
> However, when exported to PDF, the bold (or italic) style is not present.

Please provide an example document that demonstrates this problem, along with reproduction instructions.

Status -> NEEDINFO

(Please change the status back to UNCONFIRMED after you provide the document and repro steps)

> I have also used the LibreOffice feature for formatting all comments to
> specify a specific font size and style.  Inside LibreOffice, it is perfect,
> but upon export to PDF -- even when specifying via the File Properties
> Option that embedded fonts should be passed to the PDF, the font face and
> style are NOT honored in the PDF version as displayed by Adobe Reader.

Interesting. Sounds like Bug 78216 - PDF export should not remap embedded font
Comment 2 Terry Corbet 2015-01-13 03:56:13 UTC
Created attachment 112149 [details]
Simple Text Document
Comment 3 Terry Corbet 2015-01-13 03:58:35 UTC
Created attachment 112150 [details]
Simple Text Document exported to PDF

Comment formatted as Bold and Italic in LibreOffice is rendered as non-Bold non=Italic when opened in Adobe Reader.
Comment 4 Terry Corbet 2015-01-13 04:00:51 UTC
The simplest test case is shown by the two attached files.

I cannot tell whether or not this is the same problem as covered by Bug 78216.  It may have the same root cause, but I think the symptoms are slightly different.
Comment 5 Robinson Tryon (qubit) 2015-01-14 01:48:24 UTC
TESTING on Ubuntu 14.04 + LO 4.4.0.2

REPRO Steps:
- Open file (attachment 112149 [details]) in LibreOffice Writer
- Note that the right-margin comment is in bold+italics
- Export to PDF:
-- File -> Export as PDF -> General -> General -> [x] Export comments
-- Click 'Export', then 'Save'
- Open the PDF

RESULT:  
> In LibreOffice, the
> bolding of the text is correctly displayed in its version of a comment. 
> However, when exported to PDF, the bold (or italic) style is not present.

Opening with Evince 3.10.3, I just see an icon for the comment, but don't see the comment text.
Opening in Firefox 34, I see the comment icon and a tooltip does appear, but there is no bold or italic styling of the comment.

Status -> NEW

NOTE: IF Evince can't handle tooltips, then we should file a bug with GNOME for that piece of the puzzle.
Comment 6 Robinson Tryon (qubit) 2015-01-14 01:48:55 UTC
Repro'd on Ubuntu + amd64, so:
Hardware -> (generalize)
Comment 7 Buovjaga 2015-01-16 15:35:41 UTC
Same result as qubit with LibO 3.3.0, Evince & Firefox.

Ubuntu 14.10 64-bit
LibreOffice 3.3.0 
OOO330m19 (Build:6)
tag libreoffice-3.3.0.4
Comment 8 Terry Corbet 2015-01-19 07:43:00 UTC
Upon further review, I think my bug has to be rejected as "AS DESIGNED". I have spent hours reading a PDF 32000-1:2008 document written by Adobe. I imagine that there is a newer version, but this one covers up through PDF 1.7 specifications and probably represents the only reasonable specification that LibreOffice engineers could use in delivering the PDF export functionality of the present Writer.

According to those specifications: "A text annotation represents a 'sticky note' attached to a point in the PDF document. When closed, the annotation shall appear as an icon; when open, it shall display a pop-up window containing the text of the note in a font and size chosen by the conforming reader."

Hence, while LibreOffice gives us control over the text appearance of an inserted Comment, the PDF analog of an Annotation, is not bound to the same appearance assertion on the part of the document editor.

Please close out this bug; sorry to have wasted the valuable time of those involved.
Comment 9 Buovjaga 2015-01-19 07:48:37 UTC
(In reply to Terry Corbet from comment #8)
> Please close out this bug; sorry to have wasted the valuable time of those
> involved.

I wouldn't call this wasted time - now this case is documented and can be found here :)
Comment 10 Robinson Tryon (qubit) 2015-12-17 05:58:06 UTC
Migrating Whiteboard tags to Keywords: (filter:pdf)
[NinjaEdit]