Draw changes font when opening pdf text file.

classic Classic list List threaded Threaded
8 messages Options
Malcolm Jaros Malcolm Jaros
Reply | Threaded
Open this post in threaded view
|

Draw changes font when opening pdf text file.

Greetings All.
I would like to add a few words to the text embedded in a pdf file.
When the file is opened in Draw the text is displayed, and subsequently saved, in a different font from the that in the original file.
This unfortunately changes the line length and hence the page layout, which makes the amended copy unusable.
How can I prevent this?
Regards, MalJaros

--
To unsubscribe e-mail to: [hidden email]
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
Malcolm Jaros Malcolm Jaros
Reply | Threaded
Open this post in threaded view
|

Re: Draw changes font when opening pdf text file.

I do apologize for not pointing out that I am using 6.2.1.2 on Ubuntu 18.04

Regards, MalJaros


From: "Malcolm Jaros" <[hidden email]>
To: "Global Users@" <[hidden email]>
Sent: Monday, March 18, 2019 3:24:12 PM
Subject: Draw changes font when opening pdf text file.

Greetings All.
I would like to add a few words to the text embedded in a pdf file.
When the file is opened in Draw the text is displayed, and subsequently saved, in a different font from the that in the original file.
This unfortunately changes the line length and hence the page layout, which makes the amended copy unusable.
How can I prevent this?
Regards, MalJaros


--
To unsubscribe e-mail to: [hidden email]
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
Malcolm Jaros Malcolm Jaros
Reply | Threaded
Open this post in threaded view
|

Re: Draw changes font when opening pdf text file.

It occurs to me that Draw does not recognise, or does not have, the font used for the original document and substitutes one that it does have.
My problem is that the original, serif, font is being substituted by a monopitch font.
Regards, MalJaros

----- Original Message -----
From: "Malcolm Jaros" <[hidden email]>
To: "Global Users@" <[hidden email]>
Sent: Monday, March 18, 2019 3:27:05 PM
Subject: [libreoffice-users] Re: Draw changes font when opening pdf text file.

I do apologize for not pointing out that I am using 6.2.1.2 on Ubuntu 18.04

Regards, MalJaros


From: "Malcolm Jaros" <[hidden email]>
To: "Global Users@" <[hidden email]>
Sent: Monday, March 18, 2019 3:24:12 PM
Subject: Draw changes font when opening pdf text file.

Greetings All.
I would like to add a few words to the text embedded in a pdf file.
When the file is opened in Draw the text is displayed, and subsequently saved, in a different font from the that in the original file.
This unfortunately changes the line length and hence the page layout, which makes the amended copy unusable.
How can I prevent this?
Regards, MalJaros


--
To unsubscribe e-mail to: [hidden email]
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

--
To unsubscribe e-mail to: [hidden email]
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
Italo Vignoli-5 Italo Vignoli-5
Reply | Threaded
Open this post in threaded view
|

Re: Draw changes font when opening pdf text file.

If the original PDF has been generated by a software which does not
provide the option of embedding fonts (as requested from the standard
format), or the user has not activated font embedding, there is not a
solution, and the issue is not LibreOffice but the PDF which has not
been generated properly.

LibreOffice does its best with the fonts installed on the system.

Of course, if you happen to know which is the original font used to
produce the PDF you can install that font - if free - and see if this
solves the issue.

Best regards.

On 18/03/2019 14:44, Malcolm Jaros wrote:

> It occurs to me that Draw does not recognise, or does not have, the font used for the original document and substitutes one that it does have.
> My problem is that the original, serif, font is being substituted by a monopitch font.
> Regards, MalJaros
>
> ----- Original Message -----
> From: "Malcolm Jaros" <[hidden email]>
> To: "Global Users@" <[hidden email]>
> Sent: Monday, March 18, 2019 3:27:05 PM
> Subject: [libreoffice-users] Re: Draw changes font when opening pdf text file.
>
> I do apologize for not pointing out that I am using 6.2.1.2 on Ubuntu 18.04
>
> Regards, MalJaros
>
>
> From: "Malcolm Jaros" <[hidden email]>
> To: "Global Users@" <[hidden email]>
> Sent: Monday, March 18, 2019 3:24:12 PM
> Subject: Draw changes font when opening pdf text file.
>
> Greetings All.
> I would like to add a few words to the text embedded in a pdf file.
> When the file is opened in Draw the text is displayed, and subsequently saved, in a different font from the that in the original file.
> This unfortunately changes the line length and hence the page layout, which makes the amended copy unusable.
> How can I prevent this?
> Regards, MalJaros


--
Italo Vignoli - Marketing & PR
email [hidden email]
mobile/signal +39.348.5653829 - skype italovignoli
hangout/jabber [hidden email]
The Document Foundation, Kurfürstendamm 188, 10707 Berlin, DE
Gemeinnützige rechtsfähige Stiftung des bürgerlichen Rechts
Legal details: http://www.documentfoundation.org/imprint
GPG Key ID - 0xAAB8D5C0
DB75 1534 3FD0 EA5F 56B5 FDA6 DE82 934C AAB8 D5C0

--
To unsubscribe e-mail to: [hidden email]
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
Jean-Francois Nifenecker Jean-Francois Nifenecker
Reply | Threaded
Open this post in threaded view
|

Re: Draw changes font when opening pdf text file.

Le 18/03/2019 à 14:53, Italo Vignoli a écrit :

> If the original PDF has been generated by a software which does not
> provide the option of embedding fonts (as requested from the standard
> format), or the user has not activated font embedding, there is not a
> solution, and the issue is not LibreOffice but the PDF which has not
> been generated properly.
>
> LibreOffice does its best with the fonts installed on the system.
>
> Of course, if you happen to know which is the original font used to
> produce the PDF you can install that font - if free - and see if this
> solves the issue.
>

It seems to me that embedding fonts is required by the PDF/A format.
This makes PDF/A files larger than ordinary ones. The standard PDF
format doesn't require font embedding, with the drawback you mention.

Best,
--
Jean-Francois Nifenecker, Bordeaux


--
To unsubscribe e-mail to: [hidden email]
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
Paul D. Mirowsky Paul D. Mirowsky
Reply | Threaded
Open this post in threaded view
|

Re: Draw changes font when opening pdf text file.

In reply to this post by Malcolm Jaros
I am using "Version: 6.1.5.2 (x64)". Supposedly, you can force font
substitution. I have not tried it.

Choose *Tools - Options'* /- LibreOffice - Fonts'           From:
https://help.libreoffice.org/Common/Fonts/

You must click in the box next to "Apply replacement table" before you
can select the substitute fonts.

Hope this helps.


On 3/18/2019 9:44 AM, Malcolm Jaros wrote:

> It occurs to me that Draw does not recognise, or does not have, the font used for the original document and substitutes one that it does have.
> My problem is that the original, serif, font is being substituted by a monopitch font.
> Regards, MalJaros
>
> ----- Original Message -----
> From: "Malcolm Jaros" <[hidden email]>
> To: "Global Users@" <[hidden email]>
> Sent: Monday, March 18, 2019 3:27:05 PM
> Subject: [libreoffice-users] Re: Draw changes font when opening pdf text file.
>
> I do apologize for not pointing out that I am using 6.2.1.2 on Ubuntu 18.04
>
> Regards, MalJaros
>
>
> From: "Malcolm Jaros" <[hidden email]>
> To: "Global Users@" <[hidden email]>
> Sent: Monday, March 18, 2019 3:24:12 PM
> Subject: Draw changes font when opening pdf text file.
>
> Greetings All.
> I would like to add a few words to the text embedded in a pdf file.
> When the file is opened in Draw the text is displayed, and subsequently saved, in a different font from the that in the original file.
> This unfortunately changes the line length and hence the page layout, which makes the amended copy unusable.
> How can I prevent this?
> Regards, MalJaros
>
>

--
To unsubscribe e-mail to: [hidden email]
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
V Stuart Foote V Stuart Foote
Reply | Threaded
Open this post in threaded view
|

Re: Draw changes font when opening pdf text file.

In reply to this post by Malcolm Jaros
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: [hidden email]
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

Malcolm Jaros Malcolm Jaros
Reply | Threaded
Open this post in threaded view
|

Re: Draw changes font when opening pdf text file.

In reply to this post by Paul D. Mirowsky
Thank you all for the informative and helpful responses.
Much useful knowledge about both LO and PDF has come to light (and solved my original problem).
More strength to the LibreOffice community!
MalJaros
----- Original Message -----
From: "Paul D. Mirowsky" <[hidden email]>
To: "Global Users@" <[hidden email]>
Sent: Monday, March 18, 2019 4:41:12 PM
Subject: Re: [libreoffice-users] Re: Draw changes font when opening pdf text file.

I am using "Version: 6.1.5.2 (x64)". Supposedly, you can force font
substitution. I have not tried it.

Choose *Tools - Options'* /- LibreOffice - Fonts'           From:
https://help.libreoffice.org/Common/Fonts/

You must click in the box next to "Apply replacement table" before you
can select the substitute fonts.

Hope this helps.

--
To unsubscribe e-mail to: [hidden email]
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