Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - Merging PDFs without a page break
  FAQ FAQ  Forum Search   Register Register  Login Login

Merging PDFs without a page break

 Post Reply Post Reply
Author
Message
NickW View Drop Down
Beginner
Beginner


Joined: 09 Jan 24
Location: Sydney
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote NickW Quote  Post ReplyReply Direct Link To This Post Topic: Merging PDFs without a page break
    Posted: 09 Jan 24 at 3:38AM
Hi all,

I'm using the Debenu DLL, v13.

I'm building a contract document comprising (i) a table that will be generated at runtime and (ii) several chunks of static content (footer, terms&conditions page, signatures section etc). The table starts halfway down the first page - it varies in size and may or may not fit on a single page, so I need precise control over positioning and page breaks so that I can lay the document out in a particular way no matter how big or small the table is, keeping certain static sections together and keeping others on separate pages. 

I have separated the static content out into several PDFs, each one being a one-page document only a few lines long. They use multiple colours, rotated text, tables with merged cells etc so I prefer to add them to the contract document by loading them in from disc rather than creating them programmatically, purely because - I thought - it's easier. In each case, I want to load everything that is in the PDF. My plan was to read in the first couple of static sections, append the table and then append the remaining sections after the table before writing the whole thing out to disc. 

I have tried the MergeDocument and MergeFiles APIs, but I find that they insert a page break between each merged file. What is the easiest way to grab content from PDFs without Debenu putting a page break after each one? Here's an example of each approach minus the table code, in the Progress / OpenEdge 4GL (my functions map onto the equivalent 'DPL' functions in the DLL):
  
  // Using MergeDocument 
  SelectDocument(iSafDocument).
  MergeDocument(ip1Body).
  MergeDocument(iSignatures).
  MergeDocument(iFooter).
  NewPage().
  MergeDocument(iTAndC). 

  // Using MergeFiles
  MergeFiles('header.pdf', 'p1Body.pdf', 'merged.pdf').


TIA
Nick
Back to Top
NickW View Drop Down
Beginner
Beginner


Joined: 09 Jan 24
Location: Sydney
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote NickW Quote  Post ReplyReply Direct Link To This Post Posted: 10 Jan 24 at 5:14AM
Found this: https://www.debenu.com/kb/programmatically-stamp-a-pdf-onto-another-pdf/

Assuming this is still the best way to do what I want...
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store