Links settings for Notes |
Start page Previous page Next page |
Each of the desired conversion modes for the links is set separately for the document, view and databank links using the function N2PDFSetOption. These settings apply only to links which are taken directly from Notes documents.
You can choose from the following function parameters:
The value <OptionStr> sets the mode for the conversion when activating the function. The following modes are available:
N2PDFOPTION_NOTES_LINK_DOC_INTERNAL With these parameters, you can force the creation of internal jump markers (inside the PDF file) provided that the targets for this jump are located inside the document. This option is associated with the option N2PDFVALUE_NOTES_LINK_MODE_IMAGE_NDL which links all jumps externally.
Example for accepting document links as clickable graphics in the PDF file: Call N2PDFSetOption ( JobID, N2PDFOPTION_NOTES_LINK_DOC_MODE,_ N2PDFVALUE_NOTES_LINK_MODE_IMAGE_LINK, "" )
Example for disabling database links in the PDF file: Call N2PDFSetOption ( JobID, N2PDFOPTION_NOTES_LINK_DB_MODE,_ N2PDFVALUE_NOTES_LINK_MODE_NONE, "" )
Text tags If links are included in the PDF file, they can be displayed as text (except NDL links), as well as icons. You have the possibility to use the command N2PDFSetOption with the following parameters, to define a text tag which is then included in the PDF file in place of the link:
N2PDFOPTION_NOTES_LINK_DOC_TEXT_TAG N2PDFOPTION_NOTES_LINK_VIEW_TEXT_TAG N2PDFOPTION_NOTES_LINK_DB_TEXT_TAG
Example for a document link to be displayed as a clickable text tag with the value "(LINK)": Call N2PDFSetOption ( JobID, N2PDFOPTION_NOTES_LINK_DOC_MODE,_ N2PDFVALUE_NOTES_LINK_MODE_Text_LINK, "" )
Call N2PDFSetOption ( JobID, N2PDFOPTION_NOTES_LINK_DOC_Text_TAG,_ "(LINK)" , "" )
Defining URLs for External Links Links to views or databases are converted to URLs. You can both designate the basis, or host name, for such URLs along with the syntax for how the URL will be set up. You can make these two configurations separately for any type of link.
You can even convert document links to "external links" the same way. By default, document links are made as "internal links", but can be turned into "external links" by designating a host name and URL syntax.
The host name and URL syntax is set using the function N2PDFSetOption with the following parameters:
Host name: N2PDFOPTION_NOTES_LINK_DOC_HOST N2PDFOPTION_NOTES_LINK_VIEW_HOST N2PDFOPTION_NOTES_LINK_DB_HOST
URL syntax: N2PDFOPTION_NOTES_LINK_DOC_COMMAND N2PDFOPTION_NOTES_LINK_VIEW_COMMAND N2PDFOPTION_NOTES_LINK_DB_COMMAND
You can choose from variables that contain information about the link when defining the URL:
%DOC = Document ID %DB = Database ID %VIEW = View ID
Example for an external document link: Call N2PDFSetOption ( JobID, N2PDFOPTION_NOTES_LINK_DOC_HOST,_ "http://www.n2pdf.com" , "" )
Call N2PDFSetOption ( JobID, N2PDFOPTION_NOTES_LINK_DOC_COMMAND,_ "/%DB/%VIEW/%DOC?OpenDocument" , "" )
Example for an external database link on a local host (e.g. intranet): Call N2PDFSetOption ( JobID, N2PDFOPTION_NOTES_LINK_DB_HOST,_ "http://localhost" , "" )
Call N2PDFSetOption ( JobID, N2PDFOPTION_NOTES_LINK_DB_COMMAND,_ "/%DB?OpenDatabase" , "" ) |