PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sat Oct 19, 2024 9:53 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: Mon Apr 23, 2012 7:26 pm 
Offline

Joined: Wed Jun 11, 2008 3:20 pm
Posts: 6
I'm merging a bunch of PDF files, most of which are basically the same, with some images, and some differing text.

I'm doing this by using XPdfForm.FromStream to open the files, navigating to the Page; then creating a new XForm in my document, drawing into that XForm, and finally, drawing that XForm onto a page.

What I'd like to add to this is the ability to identify duplicate images when drawing to my XForm. But I'm not sure how best to go about that. I'm sure I can write code to navigate through each document and identify the images themselves, from a hash of the stream data or such: but how can I do this when working with a source XPdfForm, to a destination XForm? There seems to be no way to add some sort of object-filter of any sort to the XGraphics created from FromForm.


Top
 Profile  
Reply with quote  
PostPosted: Tue Apr 24, 2012 8:36 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3111
Location: Cologne, Germany
In an ideal world, PDFsharp would remove all duplicate objects (images, fonts) while saving.

It's on our wishlist.
It seems there was already an implementation for this problem.
viewtopic.php?f=4&t=648

I don't know why it was removed, but the old source is still available at SourceForge.

_________________
Regards
Thomas Hoevel
PDFsharp Team


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