Bug 118541 - Undesired font embedded in pdf form created with Libre Office Writer
Summary: Undesired font embedded in pdf form created with Libre Office Writer
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.0.4.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 122657 (view as bug list)
Depends on:
Blocks: PDF-Export
  Show dependency treegraph
 
Reported: 2018-07-04 21:01 UTC by jean.francois.taste
Modified: 2019-01-18 16:49 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
Reproducible document 1 (10.03 KB, application/vnd.oasis.opendocument.text)
2018-07-06 06:45 UTC, himajin100000
Details
Reproducible document 2 (10.04 KB, application/vnd.oasis.opendocument.text)
2018-07-06 06:47 UTC, himajin100000
Details
Original-test-document (30.96 KB, application/pdf)
2018-07-06 13:22 UTC, jean.francois.taste
Details
Original-odt-test-document (21.57 KB, application/vnd.oasis.opendocument.text)
2018-07-06 13:45 UTC, jean.francois.taste
Details
Properties/Font tab of pdf (22.61 KB, image/png)
2018-07-07 11:52 UTC, jean.francois.taste
Details
Non form pdf Properties/Font tab (14.61 KB, image/png)
2018-07-07 12:10 UTC, jean.francois.taste
Details
pdf form properties (22.61 KB, image/png)
2018-07-08 10:38 UTC, jean.francois.taste
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jean.francois.taste 2018-07-04 21:01:05 UTC
Description:
As I am a French guy, perhaps some of my sentences could be not clear enough.
Sorry for the trouble

I tried to create a pdf form by using LO Writer Version: 6.0.4.2 (x64)
1- save a .odt file
2- export the file as a pdf form, option send fdf
3- open the created pdf form with Adobe Reader DC 2018.011.20038
4- display properties of file, 'font' tab : several fonts are listed.
   a- variants of the Trebuchet font I have chosen
   b- Helvetica
   c- ZapfDingbats
The trouble and possible bug is that 
  1- Neither of these two fonts : Helvetica and ZapfDingbats were used by me in the original .odt file.
  2- I verified this by exporting the same document to pdf, but without including any form type (text box or else). The fonts displayed by Adobe Reader were only variants of Trebuchet
  3- The most strange is that the Helvetica font is not installed on my computer

I discover this as at some steps of the building of this new form, the pdf became unreadable : all characters appears as small squares ! Due to the presence of Helvetica, I presume

So it seems to me that :
- creating text box or else in a .odt file + exporting to pdf form
==> adds unwanted fonts Helvetica and ZapfDingbats
==> can create unreadable pdf forms

Thank you for all the good work done.
Especially the ability to create these very useful pdf forms
[I did this work for an association where I am a volunteer]

Regards

Jean-François TASTE
France

Steps to Reproduce:
1.Create a form with LO Writer, using only one type of font (Trebuchet in my case)
2.Export this form to pdf
3.Display included fonts in the pdf

Actual Results:
Helvetica and ZapfDingbats are added

Expected Results:
Only original font used should appear


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 6.0.4.2 (x64)
Build ID: 9b0d9b32d5dcda91d2f1a96dc04c645c450872bf
Threads CPU : 4; OS : Windows 10.0; UI Render : par défaut; 
Locale : fr-FR (fr_FR); Calc: group

OS : W10 x64 1803

I don't know whether the same issue occurs or not with older versions of LO Writer
Comment 1 Dieter Praas 2018-07-05 18:03:11 UTC
Jean, is it possible to add your .odt file? I couldn't reproduce it with an own file.
Comment 2 himajin100000 2018-07-06 06:45:03 UTC
Created attachment 143341 [details]
Reproducible document 1
Comment 3 himajin100000 2018-07-06 06:47:09 UTC
Created attachment 143342 [details]
Reproducible document 2
Comment 4 himajin100000 2018-07-06 06:49:44 UTC
I can reproduce this bug.

1. load any of the reproducible document
2. File->Export As->Export as PDF
3. In the PDF Options dialog, Check "Create PDF Form". This is very important.
4. Click Export
Comment 6 jean.francois.taste 2018-07-06 13:22:53 UTC
Created attachment 143353 [details]
Original-test-document
Comment 7 jean.francois.taste 2018-07-06 13:45:05 UTC
Created attachment 143354 [details]
Original-odt-test-document
Comment 8 himajin100000 2018-07-07 05:38:02 UTC
At least on my PC, I cannot see Helvetica nor ZapfDingbats in pdf.
and I believe this is because the odt file did contain neither radio buttons, checkboxes, nor push button. the odt file is just using text box.
Comment 9 himajin100000 2018-07-07 05:38:52 UTC
typo:
I cannot see Helvetica nor ZapfDingbats in Jean's pdf.
Comment 10 jean.francois.taste 2018-07-07 11:52:30 UTC
Created attachment 143375 [details]
Properties/Font tab of pdf

You will find attached a screen copy of the properties/font tab of the above pdf simplified form (Original-test-document) showing Helvetica and ZapfDingbats embedded.
Comment 11 jean.francois.taste 2018-07-07 12:10:20 UTC
Created attachment 143376 [details]
Non form pdf Properties/Font tab

You will find attached a screen copy of the properties/font tab of the pdf created as a standard pdf from the Original-odt-test-document. This picture shows that there is only Trebuchet font included, but no Helvetica or ZapfDingbats embedded.
It seems to me that only the export as a form adds these two fonts.
Regards

Jean-François
Comment 12 himajin100000 2018-07-07 14:46:31 UTC
resetting to UNCONFIRMED
Comment 13 jean.francois.taste 2018-07-08 10:38:52 UTC
Created attachment 143387 [details]
pdf form properties

You will find here attached a screen copy of the pdf form created with the original-odt-test-document.
Showing that Helvetica and ZapfDingbats are present in the pdf file.
Comment 14 jean.francois.taste 2018-07-08 10:42:14 UTC
I don't understand why the status has been changed to unconfirmed as I sent properties/Font copy showing Helvetica and ZapfDingbats in the pdf form
Can you please explain me ?
regards

PS : sorry, I didn't view my 2 previous comments and thought that they were not sent.
Comment 15 himajin100000 2018-07-08 10:53:15 UTC
(In reply to jean.francois.taste from comment #14)
> I don't understand why the status has been changed to unconfirmed as I sent
> properties/Font copy showing Helvetica and ZapfDingbats in the pdf form
> Can you please explain me ?
> regards
> 
> PS : sorry, I didn't view my 2 previous comments and thought that they were
> not sent.

The bug should be confirmed by another person than the reporter for the NEW status, and  I first set to NEW status as such a person, thinking I was able to reproduce the bug myself by placing either checkbox, radio buttons, push buttons and take a look at the produced pdfs with my PDF-XChange. I thought those are the only controls that reproduces the situation with the source code pointer in comment 5

However, as given in comment 9 and in your attachements, later it turned out that you were able to reproduce the bug even without those controls. Here I came to think that what I'm seeing is not necessarily from the same cause as yours. That's why I set back to UNCONFIRMED status.
Comment 16 Dieter Praas 2018-07-08 19:14:18 UTC
I was able to reproduce thedescribed behaviour with attachment 143354 [details] from comment 7 (there was some Colibiri Font within the document so first I changed all to Trebuchet MS). I'm no expert in PDFExport, but I change the status to NEW, that means, that it is reproducible.
Comment 17 cmflatscher 2019-01-18 16:49:31 UTC
*** Bug 122657 has been marked as a duplicate of this bug. ***