Placing PDF in specific page locations

Placing PDF in specific page locations

Forum member · Mar 21, 2007
Hello, I am merging mult. DPLX files and PDFs into one file. Before merging them together I would like to put them in specific page locations within the merged file. Can you help me out? Thanks!

Re: Placing PDF in specific page locations

Support · Mar 21, 2007
Hello, Yes, you can place pages from existing PDF documents to specific location on another page by using the ImportedPage, ImportedPageData or ImportedPageArea. You can refer to the Placing Imported Pages topic of our help documentation. Also you can use PdfPage object to import pages. When importing pages from the PDF generated using the DPLX file, you will have to output the PDF as a stream using the Draw method and pass this stream object to the PdfDocument object. You can get a PdfPage from this PdfDocument and use it in the ImportedPage, ImportedPageData or ImportedPageArea class. You can refer to the Importing Pages topic of our help documentation. Thank, ceTe Software Support Team.

Re: Placing PDF in specific page locations

Forum member · Mar 21, 2007
can you give me example syntax using dplx files in VB.net please?

Re: Placing PDF in specific page locations

Support · Mar 21, 2007
Hello, Following is a sample code snippet showing how to use DPLX files from your VB.Net Code: Dim report As New DocumentLayout("C:\Temp\ReportA.dplx") Dim document As Document = report.Run() Thanks, ceTe Software Support Team

Re: Placing PDF in specific page locations

Forum member · Mar 21, 2007
Hello, In response to the previous post, can you show me an example in VB.net how to do the following: Hello, I am merging mult. DPLX files and PDFs into one file. Before merging them together I would like to put them in specific page locations within the merged file. Can you help me out? Thanks!

Re: Placing PDF in specific page locations

Support · Mar 21, 2007
Hello, We do not have any specific example that shows how to place multiple DPLX files at a specific location on the PDF page. We do have an example that shows how to place pages from a PDF document at a specific location. Please refer to the PlacePDFs example downloaded with the product download. This is the sample code block that shows how to output multiple PDF files to the stream which can then be passed to the PdfDocument object to get the PdfPage which is passed to the ImportedPageData class to place the PDF at specific location on the page. The code is not tested and is just an outline. Dim report As New DocumentLayout("C:\Temp\ReportA.dplx") Dim report1 As New DocumentLayout("C:\Temp\ReportB.dplx") Dim document As Document = report.Run() report1.Run(document) document.Draw(stream) Dim PdfDocument As PdfDocument = New PdfDocument(Server.MapPath(stream) Dim MyPdfPage As PdfPage = PdfDocument.Pages(0) Dim MyImportedPage As ImportedPageArea = New ImportedPageArea( MyPdfPage, 2, 1404, 0) Thanks, ceTe Software Support Team