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: RESOLVED DUPLICATE of bug 50879
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Printing and PDF export (show other bugs)
(earliest affected) release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
Depends on:
Blocks: PDF-Export
  Show dependency treegraph
Reported: 2018-07-04 21:01 UTC by jean-francois.taste
Modified: 2021-04-15 08:41 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:

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

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
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: (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]


Jean-François TASTE

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: (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 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]
Comment 7 jean-francois.taste 2018-07-06 13:45:05 UTC
Created attachment 143354 [details]
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
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.

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 ?

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 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. ***
Comment 18 Brenton Chapin 2021-03-12 03:11:40 UTC
Very easy for me to reproduce in, Lubuntu 18.04.  Start Writer, add a Text Box, then Export as PDF.  ("Create Form" should already be checked.)  That's all.  If you use the utility pdffonts on the PDF, you will see that Helvetica is in there.  I am not using Helvetica, but it was in there anyway.

This is closely related to another problem I'm having.  I can't set the font that I want in the Text Box.  If you look at Control Properties for the Text Box, under the General tab, the font is "(Default)" whatever that is.  Perhaps that default is Helvetica?  Changing the font there has no effect on the PDF.  The font change works within Writer, but has no effect on the PDF form.
Comment 19 Timur 2021-04-15 08:41:13 UTC
Rule of thumb is search before reporting and confirming. 
Please read duplicate bug.

*** This bug has been marked as a duplicate of bug 50879 ***