Hi Jeff,
Thanks you for your interest in Syncfusion products.
Here is the answers for your questions,
1. Am I using the right logic to determine the page height and width?
Ans:
Yes ,You have used the correct logic to determine the page height and width.
We can also determine the page height and width by using document.Pages[0].Size.Height and document.Pages[0].Size.Width properties.
Kindly refer the below code snippet which helps another way to determine the page height and width.
//Load the existing document.
Dim PDFDoc As PdfLoadedDocument =New PdfLoadedDocument(@"..\..\Data\Template.pdf");
//Gets the height of the page.
Dim height As Single = document.Pages[0].Size.Height;
//Gets the width of the page.
Dim width As Single = document.Pages[0].Size..Width;
2. What I am doing wrong that is not writing any text to the existing PDF?
Ans:
I am afraid that I was not able reproduce the mentioned issue "Write text to existing PDF is not showing up".
Please do find the sample from the below specified location which demonstrates how to write the text in to the existing PDF.
http://files.syncfusion.com/support/pdf.Windows/F88428/DrawText.zipPlease have a look at the above sample and if still the issue exists,
Could you please try to reproducing it in the above samples or send us pdf documents so that we could sort out the cause of the issue and provide you a solution?
3. Usage of the PdfDocument and PdfLoadedDocument classes ?
Ans:
PdfDocument Class:
Essential PDF''S PdfDocument class is used to create a new pdf documents.
PdfLoadedDocument Class:
Essential PDF''S PdfLoadedDocument class is represents a logic to handle the existing pdf documents.
Could you please refer the following link if you need more information about the PdfDocument and PdfLoadedDocument classes.
http://help.syncfusion.com/ug_73/pdf/DocumentObjectModel.html http://help.syncfusion.com/ug_73/pdf/LoadDocument.html Regards,
Thiru