[Libreoffice-bugs] [Bug 50879] form exported as pdf does not embed all required fonts

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Thu Aug 8 17:11:45 UTC 2019


https://bugs.documentfoundation.org/show_bug.cgi?id=50879

--- Comment #35 from Gellért Gyuris <gellert.gyuris at gmail.com> ---
Workaround... add this script to exported PDF as a top-level document
JavaScript:

function updateFields() {
  for ( var fieldNumber = 0; fieldNumber < this.numFields; fieldNumber++) {
    getField(getNthFieldName(fieldNumber)).textFont = font.Helv;
  }
}
updateFields();

Other fonts:
Times-Roman           = font.Times
Times-Bold            = font.TimesB
Times-Italic          = font.TimesI
Times-BoldItalic      = font.TimesBI
Helvetica             = font.Helv
Helvetica-Bold        = font.HelvB
Helvetica-Oblique     = font.HelvI
Helvetica-BoldOblique = font.HelvBI
Courier               = font.Cour
Courier-Bold          = font.CourB
Courier-Oblique       = font.CourI
Courier-BoldOblique   = font.CourBI
Symbol                = font.Symbol
ZapfDingbats          = font.ZapfD

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20190808/7fc14928/attachment.html>


More information about the Libreoffice-bugs mailing list