Aloaha PDF Printing API

The Aloaha PDF Printing API is included in all Aloaha PDF Products. This API can be used to print any PDF Document without having the Reader Software installed. One of the great advantages of the Aloaha PDF Printing API is that it is able to print even PDF Documents which do not allow printing (APDFPR).

Please note that the API/Enterprise License is required for this API to work properly.




'Sample code for the Aloaha PDF Printing API
'Copyright 2006 by Wrocklage Intermedia GmbH
'Coded by Stefan Engelbert 


dim api
dim printername
dim printfile
dim StartPage
dim EndPage
dim PageScaling
dim AutoRotate
dim SpoolerTitle

printfile = "c:\test.pdf"
StartPage = 1
EndPage = -1           'print all pages
PageScaling = 1      '0=none, 1=Fit, 2=Shrink
AutoRotate = True
SpoolerTitle = "Printed by Aloaha PDF SDK"

set api = createobject("aloahapdf.edit")

printername=api.get_default_printer
if printername="" then
          printername=trim(cstr(split(api.get_printer_list_CSV,",")(0) ))
end if 

'Please use function SetupPrinter here to set the printer options.
'PrinterName=api.SetupPrinter(PrinterName,clng(..)..)

call api.print_pdf(CStr(printfile), CStr(printername), CLng(StartPage), CLng(EndPage), CLng(PageScaling), CBool(AutoRotate), CStr(SpoolerTitle))

set api = nothing



 printing_pdf_sample.vbs (0,76 KB) pdfprinter.zip (124,71 KB)

Please ask...

Although we really tried hard, there are always questions left open. But perhaps somebody else had already put the same question?
Please check!
  • Can I use a watched folder to create a PDF that is comment-enabled?
    Can the watched folder be used to take a previously generated PDF and comment-enable it?

    Technically that would be possible but it is not permitted to do that.
    Answered 02.10.2012
  • We want to use your PDF API to out Sybase powerbuilder application. Let us know how we can do this and please mail use sample script
  • Can you run the PDF Printing API as a server service?
  • I am trying to print an exiting PDF document in C#.
    Can you post the equivalent C# code to the one in the vbs sample?
    Please also specify which dlls should be added as reference!

  • Hello we are internet base company. We want to make "our" pdf printer by using library which would easier this task. After we will left download our printer from our websites.
    1. How much would cost license for PDF printer library?
    Will be possible to use some yours product?
    2. Or would be possible just to have license for Aloaha Postscript Printer?
    And we would add by ghostscript the postscript-pdf conversion.
    Thank you for quick answer for my two questions.
    Best regard
    Peter Durisin
    Technical Marketing

  • I don't find the cost of an PDF Suite enterprise light licence.
    What we want do do:
    We're 3 Developers Team, we want to write software which prints pdf's in the background and deploy this application to 400partners.
    Could you provide me with info about the costs of whats necessary to acheive our goal?

  • What is the cost for "Aloaha PDF Printing API"? To whom shoud I address my technical queries?
If not, please do not hesitate to send us your question.
We would be glad to answer it.

Adobe Print API

The Adobe Print API uses any installed Adobe Software to print the file. Just call function Adobe_Print(cstr("c:\pdftobeprinted.pdf"),cstr("PrinteName"))
PDF SDKPDF Signature APICertificate PropertiesSample CodeText StampsPDF AttachmentsImage 2 PDFPDF to Multipage TIFFAppend PDFInsert Blank PageRender ImageStamp PDF with PDFDraw PDF as LetterheadApply LetterheadPDF BackgroundsAdd NotesURL HotspotSecure PDF ViewerPDF OptimizerPDF Encryption APIPDF Printing APIPrint URLDefine Printer OptionsPDF BookmarksPDF BarcodingMerge PDF DocumentsSample APIsResize PDFCrop PDF PagePDF InformationPDF2TXTNormalize PagesDirect PDF ConversionPDF Form Saver SDKSmart Card APIAloaha Web ServicesAloaha Print MonitorAloaha Remote ConfigurationWebDAVLDAP ClientProgramming Office MacrosIIS Event Sinks