[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libreoffice-users] Re: Draw changes font when opening pdf text file.


The pdfimport was brought in from the Sun/Oracle extension. It was never
intended to provide PDF editing, nor does it! So, please keep in mind that
LibreOffice is not a PDF editor.

Otherwise, this is a known limitation of our pdfimport draw object filter:

see tdf#101220 <https://bugs.documentfoundation.org/show_bug.cgi?id=101220>

When filter imported--reading the layout and converting to native SVM
objects--the embedded glyphs "subset" into a PDF receive replacement font(s)
within LibreOffice. This is a practical mater as most PDF do not embed the
*full* font files needed to be able to "edit" a PDF. Rather, the embedded
*subset* is just those glyphs composing the PDF--again not a problem as
LibreOffice is not a PDF "editor".

While not using the subset glyphs is potentially a filter implementation
issue--more likely it is internal to our font handling which requires
Unicode based fonts--but as most PDF is generated with glyphs assigned to
PUA and legacy "Adobe" code table mappings replacment font handling is
necessary.

Currently for PDFs that fully embed fonts, LibreOffice will not "install"
those fonts. Meaning it is incumbent on the user to ensure they review the
fonts composing a PDF and obtain them for use--or work with LibreOffice's
font substitution dialog to assign a metric equivalent replacement.

Even then there can be font naming issues--the font name extracted from PDF
does not match the font name on system--so fallback occurs even though the
font is present. Use of the font-replacment dialog is necessary.

For high fidelity rendering of PDF, the "new" ipdf filter uses pdfium (a
FOSS Google Chrome project) to render PDF to bitmap image on document
canvas. That filter is evolving, to provide insertion of multi-page PDF.
And, to improve the "break" action to bring improved fidelity to the
resulting text strings and eventually skia based draw objects--right now it
is a work in progress and font handling on break is a shambles.



--
Sent from: http://document-foundation-mail-archive.969070.n3.nabble.com/Users-f1639498.html

--
To unsubscribe e-mail to: users+unsubscribe@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy

Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.