Place PDFs

Place PDFs

Forum member · Jan 5, 2007
I am trying to import different PDFs into a new document using the PlacePDFs example. The PDFs I am importing have form fields with values. The PDFs get imported correctly but the form fields do not get imported, or at least they do not show up. The images on the PDFs do show. Below is the code that I am using. Dim MyDocument As Document = New Document Dim MyPage As ceTe.DynamicPDF.Page = New ceTe.DynamicPDF.Page(864, 1296, 0) MyPage.Elements.Add(New ImportedPageData("C:\test_1.pdf", 1, 0, 0)) MyPage.Elements.Add(New ImportedPageData("C:\test_2.pdf", 1, 300, 300)) MyDocument.Pages.Add(MyPage) MyDocument.Draw("C:\test.pdf") What am I doing wrong? Jeff B

Re: Place PDFs

Support · Jan 5, 2007
Hello Jeff, The ImportedPageData will import only the page contents. The form fields do not work when using the ImportedPageData. Using the ImportedPageData you can add the pagedata to a page like adding an element to a page. If you want to import page with the form fields you will have to use Append method of the MergeDocument object which takes the start page and the number of pages to append. Following is a sample code to use this method. Dim MyDocument As New MergeDocument MyDocument.Append("D:\DocumentA.pdf", 1, 1) Thanks, ceTe Software Support Team.

Re: Place PDFs

Forum member · Jan 5, 2007
I need to have the imported PDFs on one single page not create a new document with multiple pages, one for each PDF imported. Also, is there a way to use the CreateLabel function to convert the existing form fields into text, but the key is to keep/use the existing font information from the form field? This would solve my problem. Jeff B

Re: Place PDFs

Support · Jan 5, 2007
Hello Jeff, Currently it is not possible to place multiple PDF pages with form fields on a single page. If you know the font before hand, you can use it in the CreateLabel method's parameters but it is not possible to find existing font details. Thanks, ceTe Software Support Team.

Re: Place PDFs

Forum member · Jan 5, 2007
Is there a way to save the document in postscript vs. pdf?

Re: Place PDFs

Support · Jan 5, 2007
Hello, You can only save the output generated document as PDF or output it to a byte array, stream or browser using our product. It can not be saved as a PostScript file. Thanks, ceTe Software Support Team