PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Thu Mar 28, 2024 8:49 am

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Thu Feb 06, 2020 1:18 am 
Offline

Joined: Thu Feb 06, 2020 1:13 am
Posts: 2
Hi

I print orienteering maps for various clubs - they usually arrive as a PDF. The maps should have about 20 colours in them using standard CMYK values however sometimes people use the wrong values so when I print them they look funny.

I've taken a bit of a look at the docs but can't work out - is it possible to read in a PDF file, iterate through every object to build up a colour table then adjust the colours of each object and write the PDF back out?

I've done a fair bit of C# in the past though normally I work in embedded C so I am a bit rusty. If it is possible is it something that would take hours to write a simple version? days? weeks?

thanks
Peter


Top
 Profile  
Reply with quote  
PostPosted: Thu Feb 06, 2020 7:23 am 
Offline
PDFsharp Expert
User avatar

Joined: Sat Mar 14, 2015 10:15 am
Posts: 909
Location: CCAA
Hi, Peter!
peter_mcc wrote:
If it is possible is it something that would take hours to write a simple version? days? weeks?
I think it'll take days.
Maybe it'll take hours to get it working for the first file.
But when the second file comes from a different source (different PDF generator) you may find that it takes hours to update the code to make it work with both files.

PDFsharp does not dive into page elements, so writing that part is left to you. Google will find code snippets that deal with text traction and those may serve as a starter.

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


Top
 Profile  
Reply with quote  
PostPosted: Thu Feb 06, 2020 11:15 pm 
Offline

Joined: Thu Feb 06, 2020 1:13 am
Posts: 2
Thanks. There should be a limited number of programs which generate the files but I might look at other options for the moment, especially if PdfSharp doesn't deal with the page elements.


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

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 158 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