Need help or advice?

Call us on
+44 (0) 2077 545 948

PDF Notes

Notes To PDF

Quickly and easily convert Notes to PDF. With only 2 lines of code any Notes / Domino content can be saved as PDF.

Download Now
Using An Agent To Create Content

DominoPDF can convert any HTML content to PDF, no matter where it originates, however if client-side usage is needed and HTTP / URLs are not available an agent can be used to generate the appropriate output.

LotusScript can be used to write document values, layout, formatting etc. to a local / temporary HTML file which is then passed to DominoPDF.

For example;

Sub Initialize
Dim fileNum As Integer
Dim fileName As String
Dim oDoc as NotesDocument

fileNum% = Freefile()
fileName$ = "c:\data.html"

Open fileName$ For Output As fileNum%
Print #fileNum%, |<html>|
Print #fileNum%, |<body>|
Print #fileNum%, |<p>|
Print #fileNum%, oDoc.Subject(0)
Print #fileNum%, |</p>|
Print #fileNum%, |</body>|
Print #fileNum%, |</html>|

Close fileNum%

Call DoPDF(|c:\data.html|, |c:\data.pdf|, ||)
End Sub

A number of our customers have taken this strategy further by building reports, invoices and custom layouts for generating PDF output.

By using a LotusScript agent to generate custom HTML you have full control over your PDF.

Comments (1)add
...
written by Unmesh , January 04, 2012
How do you convert richtext to html by using this agent ? we need to keep AS IS formatting .. :), There are embedded objects in richtext field like Tables, Attachments, URLs etc
Write comment
smaller | bigger

busy
 

In the Spotlight

Quick And Easy Notes To PDF Conversion


+ Read More

PDF Forms For Lotus Domino: Compendia Implements DominoPDF

Compendia, a Primeapple partner in Norway, has implemented a stock / fund trading application using DominoPDF for FMG, a multi-manager fund company.
+ Read More

Lotus Notes Attachments To PDF

IBM Notes / Domino is an ideal platform for managing and storing a wide range of rich content, files, objects and attachments.
+ Read More

News Feed

Subscribe to the Primeapple RSS News Feed.