PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Thu Jan 16, 2025 8:36 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Sat Jan 04, 2025 5:58 pm 
Offline

Joined: Tue Dec 17, 2024 11:56 pm
Posts: 8
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!


Top
 Profile  
Reply with quote  
PostPosted: Mon Jan 06, 2025 8:42 am 
Offline
PDFsharp Guru
User avatar

Joined: Sat Mar 14, 2015 10:15 am
Posts: 1026
Location: CCAA
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!".

_________________
Best regards
Thomas
(Freelance Software Developer with several years of MigraDoc/PDFsharp experience)


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 49 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group