PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Tue Mar 19, 2024 11:32 am

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Sat Oct 18, 2008 4:22 pm 
Offline
Supporter

Joined: Sat Oct 18, 2008 4:15 pm
Posts: 50
Hi

I used PDFSharp to place objects (self made charts) into existing PDF document (tempalte with loads of text), but it's not really practical to position it in pixels. Is there any way to place some placeholders (bookmars in word) into PDF document and replace them in their position with my object ?
I assume teplates and position of inserted objects will change with upcoming versions, so I dont wanna change those positions with each new template. also, is there any wayto figure cordinates in document ?

best reards

--G


Top
 Profile  
Reply with quote  
PostPosted: Wed Oct 21, 2009 3:26 pm 
Offline

Joined: Wed Oct 21, 2009 3:21 pm
Posts: 3
I would love to see an answer to this post.


Top
 Profile  
Reply with quote  
PostPosted: Thu Oct 06, 2022 9:53 am 
Offline
User avatar

Joined: Thu Oct 06, 2022 9:30 am
Posts: 2
i have a similar problem, i will add a image above a given word which exists in a pdf.
so i need the x,y position from word.
i use "PDFsharp" in a ms vs 2022 c# project.


Top
 Profile  
Reply with quote  
PostPosted: Mon Oct 10, 2022 8:59 am 
Offline
PDFsharp Expert
User avatar

Joined: Sat Mar 14, 2015 10:15 am
Posts: 906
Location: CCAA
Markus R. wrote:
so i need the x,y position from word.
PDFsharp does not have an API for text extraction and it does not have an API to get co-ordinates.
You can start with the text extraction code for PDFsharp that was posted on the web and add code that gets the text position.
Depending on the PDF files you have to deal with, this can be rather simple or really complicated.

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


Top
 Profile  
Reply with quote  
PostPosted: Mon Oct 10, 2022 1:05 pm 
Offline
User avatar

Joined: Thu Oct 06, 2022 9:30 am
Posts: 2
TH-Soft wrote:
Markus R. wrote:
so i need the x,y position from word.
PDFsharp does not have an API for text extraction and it does not have an API to get co-ordinates.
You can start with the text extraction code for PDFsharp that was posted on the web and add code that gets the text position.
Depending on the PDF files you have to deal with, this can be rather simple or really complicated.


ok, thank you.
edit:
my solution was FreeSpire pdf, there i can get text with positions.


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

All times are UTC


Who is online

Users browsing this forum: Google [Bot], kashgoyal and 54 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