PDFsharp & MigraDoc Forum
https://forum.pdfsharp.net/

Can I create XFont from data in the PDF file?
https://forum.pdfsharp.net/viewtopic.php?f=2&t=4757
Page 1 of 1

Author:  cshearercooper [ Sat Jan 04, 2025 5:58 pm ]
Post subject:  Can I create XFont from data in the PDF file?

I'd like to edit a PDF file, adding more text using the same font as other text already in the PDF file.
I've got the code working to look through the /Resources for the current /Page and find all the /Font dictionaries, but I am unsure how to jump from that to XFont.
Any ideas?
Thanks!

Author:  TH-Soft [ Mon Jan 06, 2025 8:42 am ]
Post subject:  Re: Can I create XFont from data in the PDF file?

Can you do it? I dunno.

Can it be done? Yes, but it'll be very complicated.

Note that the font tables in a PDF file often just contain subsets of fonts, leaving out characters that are not used.
You cannot write "Fox" when the PDF file only contains the glyphs for "Hello, World!".

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/