PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sun Jun 24, 2018 8:29 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Tue Jul 19, 2016 12:08 pm 
Offline

Joined: Tue Jul 19, 2016 11:53 am
Posts: 4
Hi,

I am new to PDFSharp

Reading the FAQ I understand that there is no PDFSharp viewer,and I wonder how hard is to implement such viewer? maybe it is something that I can contribute to?.

I am a season .NET \WPF developer currently working on an application which need to display PDF including interactive forms

I plan to use PDFSharp for extracting some information about the pdf document

Thanks in advance

Tomer


Top
 Profile  
Reply with quote  
PostPosted: Tue Jul 19, 2016 10:20 pm 
Offline
User avatar

Joined: Sat Mar 14, 2015 10:15 am
Posts: 378
Location: CCAA
Hi!
tomerdr wrote:
Reading the FAQ I understand that there is no PDFSharp viewer,and I wonder how hard is to implement such viewer? maybe it is something that I can contribute to?
As far as I understand it, a PDF page for PDFsharp is just a large string with post-script instructions.
For a PDF viewer, you have to parse this string and execute the post-script instructions (i.e. draw things).

The first step would be parsing the post-script instructions. Useful for extracting text, too.
And then draw things.

I think it's pretty hard to write a useful viewer.

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


Top
 Profile  
Reply with quote  
PostPosted: Thu Jul 21, 2016 6:03 pm 
Offline

Joined: Tue Jul 19, 2016 11:53 am
Posts: 4
Thanks...but I thought that PDFSharp take care of this...I mean turn the pdf document into a collection of objects

My assumption was that I "just" need to go over the collection of object(annotation,text,table) etc...

And draw them...what am I missing?

Thanks in advance

Tomer


Top
 Profile  
Reply with quote  
PostPosted: Fri Jul 22, 2016 6:57 am 
Offline
User avatar

Joined: Sat Mar 14, 2015 10:15 am
Posts: 378
Location: CCAA
tomerdr wrote:
My assumption was that I "just" need to go over the collection of object(annotation,text,table) etc...

And draw them...what am I missing?
As I wrote: a page is a big string and you have to parse it.

Search for "Extracting text" or look at this "sample":
http://stackoverflow.com/q/38408763/1015447

When you draw it, you have to take the transformations into account.

_________________
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  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: Baidu [Spider], Google [Bot] and 6 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