Use embedded commands to apply backgrounds to PDF pages

Nice features of the Aloaha PDF Suite are the embedded commands. Embedded commands are written in the original document. When printed to Aloaha and converted to PDF they are being interpreted fully automatically.

The background command enables the user to specify on every page which background has to be rendered into the same page. To activate the background command please create a string value background in:

HKLM\Software\Aloaha\pdf or HKCU\Software\Aloaha\pdf

Aloaha will read this value only once at startup to save processing time. The content of this value should be a regular expression used to search the path to the background PDF. For example the value could be “Background:”. 



Owner of the Aloaha PDF Suite Enterprise Edition are able to use this feature with the apply_letterheads_per_page API directly.


Please find a sample vbs script below


Dim pdf
Dim workpdf                            ‘holds path to original pdf document
Dim targetpdf                          'holds path to save the rendered PDF
Dim searchstring                    ‘regular expression to find on every page

Workpdf = “c:\test.pdf”
Targetpdf= “c:\test.pdf” ‘            Yes – source and target can be the same!


Set pdf = createobject(“aloahapdf.edit”)

Call pdf.apply_letterheads_per_page(cstr(workpdf), cstr(targetpdf), cstr(searchstring))

Set pdf = nothing





The registry key HKLM\Software\Aloaha\pdf\LayeredPDFLetterhead defines if only one or several PDF Layers are used. The key HKLM\Software\Aloaha\pdf\PDFLetterHeadLayer defines the PDF Layer to be used for the Letterhead.





Aloaha offers a couple of similar APIs. For example render PDF as backround on page X.

Should you require more information please do not hesitate to contact us via the form below.



Company
Contact Person  
E-Mail
Telephone
Fax
Comment:

Please enter the code shown on the left in the following field: (This is to prevent automatic spammers)


Aloaha Software / Knowledge Base / PDF SDK / PDF Backgrounds
create PDF Software

PDF Backgrounds

Any questions?
Aloaha Software - PDF Backgrounds
ProductsKnowledge BaseShopSupportPress
Deutsche VersionEnglish version