General Information |
Start page Previous page Next page |
As well as transferring Rich Text fields, supported by the entire range of Notes documents or by unformatted ASCII texts, n2pdf can also process file attachments (Attachments). n2pdf distinguishes between four different modes when processing file attachments.
•the content of an attachment is directly imported into the PDF file (import mode) N2PDFVALUE_ATTACHMENT_IMPORT_MODE
•attach the file attachments as additional pages at the end of the PDF (convert mode) N2PDFVALUE_ATTACHMENT_CONVERT_MODE
•the attachment is saved to the file system and a link to the file is added to the PDF (link mode) N2PDFVALUE_ATTACHMENT_LINK_MODE
•embed the attachment in the PDF (embed mode) N2PDFVALUE_ATTACHMENT_EMBED_MODE
An import filter is required for the operations "direct import" (import mode) and "attach to the PDF" (convert mode). Which import filters support these operations can be found in the documents addressing the individual filters. n2pdf has integrated import filters for the conversion of attachments or is capable of using external import filters such as the webPDF Server (convert mode).
In addition, OfficeBridge allows native processing of Office formats from Word, Excel and PowerPoint. OfficeBridge can be used by n2pdf in two different ways. One is the server-side installation of Microsoft Office using webPDF, and the other is a local installation of Microsoft Office.
To use OfficeBridge on the server you need a webPDF licence.
The n2pdf client can also access a local Office installation via OfficeBridge and this requires no additional webPDF licensing.
When using the "linking" (link mode) or "embedding" (embed mode) options, no import filter is required. This can be done with any file format.
How is an attachment handled? Which form of attachment handling is used, is defined by the parameter N2PDFOPTION_ATTACHMENT_MODE and the function SetOption. After setting these, the function N2PDFAddAttachment is used to pass the attachments to n2pdf. Depending on the setting made, attachments are then imported, converted, linked or embedded in the PDF file.
We illustrate the options available for dealing with attachments in the Database of examples entitled "Attachments". |