PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Thu Nov 14, 2019 6:45 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: Thu May 30, 2019 9:12 pm 
Offline

Joined: Thu May 30, 2019 8:54 pm
Posts: 1
Hello,

First let me say thank you for PDFsharp!

I'm using the PDFReader to low-level extract the charcters/text, etc, from a PDF. It seems that what the ContentReader.ReadContent() reads in and only has character information. It's very important that I extract (at the least) the Y-value position for the text.

So, I'm looking at PDFReader.Open() and I'm looking at the code and trying to step through it to see how the Document/Pages/Elements are put together and where I might do this, but I thought I would ask if there's an easier way to do this or if my approach is wrong.

Thank you!

Chris


Top
 Profile  
Reply with quote  
PostPosted: Fri May 31, 2019 5:54 am 
Offline
PDFsharp Expert
User avatar

Joined: Sat Mar 14, 2015 10:15 am
Posts: 498
Location: CCAA
Hi!

PDF can be very complicated using indirection, composition, transformation, ...
Look at this sample:
http://pdfsharp.net/wiki/GetFile.aspx?F ... XForms.png

There is no simple general solution to tell which text is drawn where.
It'll be simpler if all your documents come from a single application.

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

All times are UTC


Who is online

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