PDFsharp & MigraDoc Foundation

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

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Mon Jan 11, 2016 10:27 am 
Offline

Joined: Tue Jul 15, 2014 8:56 pm
Posts: 13
I use a mix of pdfsharp and pdfium to work with existing pdfs, using pdfsharp I can get to the objects on a page and delete them, this works great, I can output a working pdf with bits cleanly removed however knowing what I have removed is not so easy.
Using pdfium I can identify objects on a page that are within a rectangle or even the text in there. I've been trying to use the information I can get out of pdfium about the objects in an area to then use with pdfsharp for it's editing ability.
Has anyone else done anything along these lines with any success? The problem is pdfium is great for pdf rendering so it's strengths are in identifying things on a page as it would appear to the end user, however at least in the open source lots of broken/ missing/ messed up code exists around the editing functions so you cant manipulate, delete, add objects to a pdf page. (at least unless I want to write the code to achieve all that) On the pdf sharp side it can edit beautifully, however since it does not know how to render we don't get information such as the position of an object on the output. Lets say I want to delete any objects on a page whose bounding box is entirely contained in the top half of that page. Identifying them in pdfium is easy enough. What I've been trying to do is get a list of references out of pdfium for pdfsharp to then do it's remove magic on, but what pdfium see's as an object and what pdfsharp see's as an object do not seems to match up. A big part of the problem is blindly muddling through the api's on both sides to find likely avenues.


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

All times are UTC


Who is online

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