PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Thu May 16, 2024 3:14 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: Tue May 20, 2014 11:01 pm 
Offline

Joined: Tue Mar 19, 2013 2:14 pm
Posts: 10
My OSS library needs to normalize dates in pdf files.https://github.com/togakangaroo/ApprovalTests.BetterPdfVerification.

I therefore do

Code:
            var knownDate = new DateTime(2010, 1, 1);
            doc.Info.CreationDate = doc.Info.ModificationDate = knownDate;


This works, until its run by someone in a different timezone then we get mismatches because creation date and mod date have timezone components eg
Code:
/CreationDate(D:20100101000000-05'00')


DateTime in .Net famously does not have a timezone component. So where does that come from and how do I control it?


Top
 Profile  
Reply with quote  
PostPosted: Tue May 27, 2014 8:25 pm 
Offline

Joined: Tue Mar 19, 2013 2:14 pm
Posts: 10
I've also have no response opening a codeplex issue or posting on there and offering to fix it myself given some guidance on how to actually contribute a patch.

Is PdfSharp development just dead?


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 23 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