Error when trying to "draw" a page and save it. I merge 6 pages into one document and then save it. It has some xobject images on the some of the pages as well, I am not sure if these cause the problem:
Imported Page Annotations cannot be drawn directly.
Imported Page Annotations cannot be drawn directly.
Re: Imported Page Annotations cannot be drawn directly.
Support · May 2, 2006First thing to do is make sure that you are using the latest build of the DynamicPDF dll. There was a recent fix in our current build 60419 that may have to do with this.
If you currently have a license then you can download the latest version from the Customer Area
, otherwise the latest evaluation version can be downloaded from here
.
If you have the latest build and you are still getting the error message then we will need to take a look at the PDF files that you are merging to identify exactly where the problem is originating. Please send over any of the PDF files that you are using along with some sample code to demonstrate how you created the error to our support email, [^a|mailto:support@cete.com|support@cete.com^].
Thanks,
ceTe Software Support Team
Re: Imported Page Annotations cannot be drawn directly.
Forum member · May 3, 2006Here is the code I used. Where can I send the pdf files to?
ctMerger.MergeOptions mOptions = new ctMerger.MergeOptions(true);
ct.Merger.PdfDocument mPdfpagex = new ceTe.DynamicPDF.Merger.PdfDocument(Server.MapPath("Files\\HORCQE Data Form Page1.pdf"));
ct.Merger.PdfDocument mPdfpage2 = new ceTe.DynamicPDF.Merger.PdfDocument(Server.MapPath("Files\\HORCQE Data Form Page2.pdf"));
ct.Merger.PdfDocument mPdfpage3 = new ceTe.DynamicPDF.Merger.PdfDocument(Server.MapPath("Files\\HORCQE Data Form Page3.pdf"));
ct.Merger.PdfDocument mPdfpage4 = new ceTe.DynamicPDF.Merger.PdfDocument(Server.MapPath("Files\\HORCQE Data Form Page4.pdf"));
ct.Merger.PdfDocument mPdfpage5 = new ceTe.DynamicPDF.Merger.PdfDocument(Server.MapPath("Files\\HORCQE Data Form Page5.pdf"));
ct.Merger.PdfDocument mPdfpage6 = new ceTe.DynamicPDF.Merger.PdfDocument(Server.MapPath("Files\\HORCQE Data Form Page6.pdf"));
ceTe.DynamicPDF.Merger.MergeDocument mPdfdoc = new ceTe.DynamicPDF.Merger.MergeDocument(mPdfpagex,mOptions);
mPdfdoc.Append(mPdfpage2, mOptions);
mPdfdoc.Append(mPdfpage3, mOptions);
mPdfdoc.Append(mPdfpage4, mOptions);
mPdfdoc.Append(mPdfpage5, mOptions);
mPdfdoc.Append(mPdfpage6, mOptions);
ceTe.DynamicPDF.Page pagex = mPdfdoc.Pages[0];
ceTe.DynamicPDF.Page page2 = mPdfdoc.Pages[1];
ceTe.DynamicPDF.Page page3 = mPdfdoc.Pages[2];
ceTe.DynamicPDF.Page page4 = mPdfdoc.Pages[3];
ceTe.DynamicPDF.Page page5 = mPdfdoc.Pages[4];
ceTe.DynamicPDF.Page page6 = mPdfdoc.Pages[5];
string strIn = "H006162";
ceTe.DynamicPDF.Font myFont = ceTe.DynamicPDF.Font.Helvetica;
int MediumFontSize = 10;
mPdfpagex.Form.Fields["txtAddressLine1"].CreateLabel(pagex, "Rens", myFont, MediumFontSize);
mPdfpagex.Form.Fields["txtAddressLine2"].CreateLabel(pagex, "Renso Hollhumer", myFont, MediumFontSize);
mPdfpagex.Form.Fields["txtAddressLine3"].CreateLabel(pagex, "85 N Kitty Knight Drive", myFont, MediumFontSize);
mPdfpagex.Form.Fields["txtAddressLine4"].CreateLabel(pagex, "Southampton, PA, 18966", myFont, MediumFontSize);
mPdfpagex.Form.Fields["txtAddressLine5"].CreateLabel(pagex, "Bucks CO PA", myFont, MediumFontSize);
mPdfpagex.Form.Fields["txtPolicy"].CreateLabel(pagex, strIn, myFont, MediumFontSize);
mPdfpagex.Form.Fields["txtHomeBuilt"].CreateLabel(pagex, "1962", myFont, MediumFontSize);
mPdfpagex.Form.Fields["txtMessage"].CreateLabel(pagex, "Just take a few minutes to complete this form, then return it to <B New Jersey Manufacturers Insurance Group B> in the enclosed envelope. You'll promptly receive a FREE, computer analysis of the various costs to replace YOUR house...to help make sure you're properly covered.", myFont, MediumFontSize);
mPdfdoc.DrawToWeb(this);
Re: Imported Page Annotations cannot be drawn directly.
Support · May 4, 2006Hello,
The issue has been resolved. We will be releasing the new build with the fix shortly. In the meantime if you experience the same error, please contact our [^a|mailto:support@cete.com|Support Team^].
Thanks,
ceTe Software Support Team