Aloaha Print URL Sample

With Aloaha it is possible to load a  PDF document directly from an URL and print a hardcopy to a printer.

Please see the sample below:


Dim pdf
Dim URL
Dim Printer
Dim StartPage
Dim EndPage
Dim PageScaling
Dim AutoRotate
Dim SpoolerTitle

Set pdf = CreateObject("aloahapdf.edit") 
URL = "http:\\www.yourdomain.tld\test.pdf"
SpoolerTitle = "Test.pdf"
Printer = "HP500"
StartPage = 1
EndPage = 999
PageScaling = 1
AutoRotate = true
If pdf.load_pdf_to_mem(cstr(URL)) = True Then 
     
     If pdf.print_pdf(cstr(""), cstr(printer), clng(Startpage), clng(Endpage), clng(PageScaling), cbool(AutoRotate), cstr(SpoolerTitle)) = True Then 
          
          MsgBox "OK"
     End If 
     call unload_pdf_from_mem
End If

Set pdf = Nothing


Please ask...

Although we really tried hard, there are always questions left open.

Please send us your question.
We would be glad to answer it.
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