PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index PDFsharp - moved to http://forum.pdfsharp.net/
Please visit the new PDFsharp forum at http://forum.pdfsharp.net/
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Image Placement in PDF

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index -> Support - moved to http://forum.pdfsharp.net/
View previous topic :: View next topic  
Author Message
WolfiePDF



Joined: 05 Feb 2008
Posts: 4

PostPosted: Wed Feb 06, 2008 3:35 pm    Post subject: Image Placement in PDF Reply with quote

I need to place an image inside of a PDF in a very specific spot. That spot will vary from PDF and will not be known at the time of image insertion.

I have researched the following techniques, but haven't come up with a solution:

1. Place a text field in the PDF, and use it's dimensions and placement to lay the image over the text field. I haven't been able to extract the exact positioning of the text field yet, I did find the dimensions though, but finding the X/Y coordinates of that field in the PDF escapes me.

2. Use the new Image Field provided in Adobe Designer and Live Cycle. To PDFSharp this field just shows up as a PDFButtonField, and there isn't an href property to set. The href property is stored in the XFA, but I can't figure out how to modify or set values in the XFA through PDFSharp.

3. Other named anchors. I do have control over the creation of the PDF's, if there are any easier to access named anchors I could use for placement and sizing of an image in a PDF let me know. I tried to just replace an existing image, but you can't name images so there is no way to tell if I am replacing the appropriate image in the PDF.

Thanks in advance for any guidance.
Back to top
View user's profile Send private message
WolfiePDF



Joined: 05 Feb 2008
Posts: 4

PostPosted: Fri Feb 08, 2008 5:07 pm    Post subject: Reply with quote

After working on this for days the final solution was to do #1, but using AspPDF to pull it off.

XFA is not the easiest thing to modify, and even when I did it didn't always update the document.

I couldn't find any other named anchors that PDFSharp or ITextSharp would support.

For #1 both PDFSharp and ITextSharp I could extract the dimensions, etc to size and place the image, but once placed the image was never lined up perfectly.
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index -> Support - moved to http://forum.pdfsharp.net/ All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © phpBB Group. Hosted by phpBB.BizHat.com


Start Your Own YouTube Clone

Free Web Hosting | Free Forum Hosting | FlashWebHost.com | Image Hosting | Photo Gallery | FreeMarriage.com

Powered by PhpBBweb.com, setup your forum now!
For Support, visit Forums.BizHat.com