Ok I have a need to place an image, in this case a signature image file, onto a PDF at a specific location.
I was reading this page and it does appear that it can be done by using the X, Y properties.
http://www.DynamicPDF.com/support/net_help_library/html/ceTeDynamicPDFPageElementsImageMembers.htm
The problem is I do not know the X Y coordinates as they are dynamically produced PDFs from MS Word source documents.
Logically in my head, I could place something in the Word document (a bookmark?) and convert it to a PDF in my application. But then the Word bookmark wont get translated to a PDF bookmark, right?
Even then is there a way to know the X/Y of a PDF bookmark and to know what page it is on?
Any help would be appreciated.
Place image on PDF using a "book mark"
Re: Place image on PDF using a "book mark"
Support · Dec 5, 2011Hello,
Yes, you will need to specify the X and Y position coordinates to add image at desired location on the PDF document. Also it is not possible to preserve the bookmarks which are in the input MS Word document after converting it to PDF document.
It is not possible to know the X and Y positions of the contents of the converted PDF document using our DynamicPDF Merger for .NET product.
If you have an already existing PDF containing bookmarks then you can read the text of bookmarks, get the target page number using our DynamicPDF Merger for .NET product. Below is the sample code for it.
PdfDocument pdf = new PdfDocument(@"C:\AllPageElements.pdf");
MergeDocument doc = new MergeDocument(pdf);
ceTe.DynamicPDF.Merger.PdfOutlineList list = pdf.Outlines;
int pagenumer = pdf.Outlines[0].TargetPageNumber;
string name = pdf.Outlines[0].Text;
doc.Draw(@"C:\TestPageElements.pdf");
Feel free to download the evaluation edition of DynamicPDF Merger for .NET product from our website at: http://www.DynamicPDF.com/Products/DynamicPDFForNET/Merger/Download.csp
. Also refer the sample examples downloaded with the product download.
Thanks,
ceTe Software Support Team.