I believe that this link will answer your questions, also there is code 
examples on this page. I also believe you are correct on imbedded fonts, the 
pdf viewer will select the desired font if it is not imbedded and the 
programmer does not have control over selection.



https://pdfbox.apache.org/1.8/cookbook/workingwithfonts.html



Thanks

Stefan Ronnkvist



________________________________
From: Kirk, Kenneth <[email protected]>
Sent: Thursday, March 14, 2019 9:38:54 AM
To: [email protected]
Subject: RE: External: RE: Approximate Font

What I meant to ask was, what method can I use to specify a nonstandard font, 
i.e. Arial or MS Sans Serif without having to embed the font in the pdf.  I 
assume the viewer will find a substitute if the specified font is not present 
on the client machine.

-----Original Message-----
From: Stefan Rönnkvist <[email protected]>
Sent: Wednesday, March 13, 2019 2:03 PM
To: [email protected]
Subject: External: RE: Approximate Font

I posted this brief code and if you follow it, your questioned is answered. The 
program creates a form with the question on top of answer (groups) and having 
two different fonts for each line. The information is compared to determine the 
longest and then spaces the groups accordingly. Hope this helps.



https://nam05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fstackoverflow.com%2Fa%2F20779205%2F1579736&amp;data=02%7C01%7C%7Ce7497ccceed54786d34508d6a88b11f3%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636881712580436535&amp;sdata=4SpwsCT4quyGV3sDuv9VyWG2jdbG%2FZ2Lt9NfdeC4pzY%3D&amp;reserved=0



Thanks

Stefan Ronnkvist



________________________________
From: Kirk, Kenneth <[email protected]>
Sent: Wednesday, March 13, 2019 1:54:44 PM
To: [email protected]
Subject: Approximate Font

I'm trying to find a simple way to approximate true type fonts without the need 
to embed the font into the document.  We have a document management system 
which create annotations as graphic overlays.  I need to take those overlays 
and place them as pdf objects on the document.  The document management client 
software allows the user to create text annotations using any of the true type 
fonts installed on the system.  How can I create a font description font that 
doesn't embed the font and let viewer handle it by approximating the closest 
font.

Kenneth D. Kirk
Information Systems Advisor
Document Management
Information Technology









************************************************
Disclaimer - This email and any files transmitted with it are confidential and 
contain privileged or copyright information. You must not present this message 
to another party without gaining permission from the sender. If you are not the 
intended recipient you must not copy, distribute or use this email or the 
information contained in it for any purpose other than to notify the Office of 
the Illinois Secretary of State.

If you have received this message in error, please notify the sender 
immediately, and delete this email from your system. Any views expressed in 
this message are those of the individual sender, except where the sender 
specifically states them to be the views of the Office of the Illinois 
Secretary of State.
************************************************


















************************************************
Disclaimer - This email and any files transmitted with it are confidential and 
contain privileged or copyright information. You must not present this message 
to another party without gaining permission from the sender. If you are not the 
intended recipient you must not copy, distribute or use this email or the 
information contained in it for any purpose other than to notify the Office of 
the Illinois Secretary of State.

If you have received this message in error, please notify the sender 
immediately, and delete this email from your system. Any views expressed in 
this message are those of the individual sender, except where the sender 
specifically states them to be the views of the Office of the Illinois 
Secretary of State.
************************************************












---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to