Knowledgebase: Developer
VB example for appending a PDF file
Posted by admin admin on 22 November 2006 08:28 PM
Problem:
Do you have any Visual Basic examples for appending a PDF file?

Solution:
The following Visual Basic example shows how to append the PDF document named "c:\appendfile.pdf" to a new PDF document named "c:\test.pdf".
 
  'specify the existing PDF file that will be appended to the new PDF document
  SaveSetting "Dane Prairie Systems", "Win2PDF", "PDFAppendFile", "c:\appendfile.pdf"
 
  'set the file name for the new PDF document
  SaveSetting "Dane Prairie Systems", "Win2PDF", "PDFFileName", "c:\TEST.PDF"
  'output some text
  Printer.Print "hello world!"
  'save the new PDF document and append to the existing PDF file
  Printer.EndDoc
(0 vote(s))
Helpful
Not helpful

Comments (1)
Mason Bancroft
02 September 2008 06:49 PM
Which Reference Libraries do I use? Could you please write a complete sub procedure for this example? (assuming that I'm using VB in Excel) Thanks!

Copyright 2000-2018 © Dane Prairie Systems LLC. All Rights Reserved. About Us | Privacy Policy | PDF Blog | Site Map