Insert Blank Page

To insert a blank page into an existing PDF Document please load that PDF Document first to memory and then call:

insertblank(pageno As Long) 

This function returns 0 in case of an error and pageno in case of success.

Please do not forget to save you document after changes have beeing done.

An easier function is the function append_blank. Please visit Append PDF to see some sample code!


Remove Pages

The following sample will demonstrate how to remove a given amount of pages from a loaded PDF document.

dim pdf
dim pdffile
dim TargetPDF
dim spage  'startpage
dim pagec  'pagecount

TargetPDF = "c:\output.pdf"
pdffile = "c:\input.pdf"

set pdf = createobject("aloahapdf.edit")

If pdf.load_pdf_to_mem(CStr(pdffile)) = true Then
   if pdf.DeletePages(clng(spage), clng(pagec)) = true then
         call pdf.save_pdf_to_file(cstr(TargetPDF))
   end if
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.

Download PDF SDK here!

Please request a free evaluation key from aloaha@wrocklage.de!
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 APIPDF 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