PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Tue Apr 23, 2024 1:09 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 Feb 07, 2008 5:49 pm 
Offline

Joined: Tue Feb 05, 2008 2:39 pm
Posts: 4
I am trying to lay an image over a existing text field.

I can find the Rect of the text field using:

PdfRectangle txtRect = txtField.Elements.GetRectangle("/Rect");

But when I extract the X/Y coords and use it with gfx.DrawImage the positioning for Left is perfect, but the Top positioning is always off.

What are the text field Rect coords in reference to?

What is the best XGraphics creation method to use only knowing the X/Y of the text field, currently I am using FromPdfPage.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Fri Feb 08, 2008 5:04 pm 
Offline

Joined: Tue Feb 05, 2008 2:39 pm
Posts: 4
I know this isn't constructive, but just in case others are searching.

I couldn't find a way to do it with PDFsharp or ITextSharp Libraries. If you are on a Microsoft platform AspPDF does the job easy.


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: Google [Bot] and 199 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