My code is not very different from yours.
Here it is
PDFDocument pdfDoc = new PDFDocument();
pdfDoc.Margins = new PDFPadding(0);
pdfDoc.LastPage.Orientation = PageOrientation.Landscape;
IPDFFont pdfFont = pdfDoc.Fonts.Add(new System.Drawing.Font("Arial", 10));
pdfFont.Size = 10;
System.Drawing.Image img = Cache["logo"] as System.Drawing.Image;
pdfDoc.LastPage.Graphics.DrawWatermark(img, WatermarkImageType.Stretched);
string[] lines = (string[])Cache["text"];
pdfDoc.LastPage.Graphics.DrawMultiText(321, 182, pdfDoc.LastPage.DrawingWidth, pdfDoc.LastPage.DrawingHeight, string.Format(lines[0], 12345), pdfFont);
System.Drawing.Font f = pdfFont.ToSystemFont();
pdfDoc.LastPage.Graphics.DrawMultiText(113, 365, pdfDoc.LastPage.DrawingWidth, pdfDoc.LastPage.DrawingHeight, lines[3], pdfFont);
pdfDoc.Save("Sample.pdf", Response, HttpReadType.Open);
// calling dispose doesn''t resolve the problem
//pdfDoc.Dispose();
pdfDoc = null;
}
>
>Hi Abhishek.,
>
>Thank you for your interest in Essential PDF and Sorry for the delay in getting back to you. I am afraid I was not able to reproduce this issue. I tested this issue using the following sample
>
>
WaterMark.zip
>
>Could you please take a look at the sample and let me know of any differences in your pdf generation from the above sample. If the problem still exists can you please modify this sample and send so that I can investigate further on this issue.
>
>Thanks,
>Ajish.
>