Home

PDFDoc Scout

PDFDoc Scout screenshot (click to enlarge)



PDFDoc Scout library - Sample

Download Free Trial See Licensing Options More Information

How to add buttons to the page in PDF document made with PDFDoc Scout library: 

Download example source code: pdfdocscout_example_buttons.zip (55,6 KB)

Screenshot (view produced pdf):

Creating buttons in PDF page using PDFDoc Scout library
 ' create PDFDoc object
 
Set PDFDoc = CreateObject("PDFDocScout.PDFDocument")
 
' initialize library
 
PDFDoc.InitLibrary "demo""demo"
 
 
' set output filename for PDF document
 
PDFDoc.OutputFileName "pdfdocscout_example_buttons.pdf"
 
' automatically open generated PDF document in default PDF viewer application
 
PDFDoc.AutoOpenGeneratedPDF = true

 
' starts PDF document generation
 
PDFDoc.BeginDocument

 
' add new Buttons
 
Set demoButton PDFDoc.Page.AddButton("demoButton"100100160120)
 demoButton.Caption 
"Demo Button"
 
Set demoButton2 PDFDoc.Page.AddButton("demoButton2"100130160150)
 demoButton2.Caption 
"Demo Button 2"

 
' close pdf document generation
 
PDFDoc.EndDocument

 
' disconnect from library
 
Set PDFDoc = Nothing    

Download example source code: pdfdocscout_example_buttons.zip (55,6 KB)

Download Free Trial See Licensing Options More Information


See also: Bytescout.PDF - native .NET library to write/read/sign/
modify/merge/split PDF documents (but no HTML2PDF support)



On-line documentation (HTML format)


"Hello, World!" quick start step-by-step tutorials:

Products  |  Download  |  Purchase  |  Support  |  Contacts  |  Testimonials |  

ByteScout, 2003-2008. All other company and product names may be trademarks of their respective companies. Privacy Statement