Images |
Start page Previous page Next page |
n2pdf can export text, tables as well as graphics from Notes documents. The graphics may be saved as visible images or as file attachments in the Notes documents. Graphics may be found in various sizes and may be optimized for screen display. When exporting such files to a PDF, this may cause problems, as the files may be larger than the page settings of the PDF. In these cases it may be sensible to resize the graphics. The following options allow you to influence graphics in the PDF.
N2PDFOPTION_IMAGE_MAX_WIDTH_IN_BODYN2PDFOPTION_IMAGE_MAX_HEIGHT_IN_BODYThese two parameters allow you to define the maximum size of a graphics file in the PDF. Graphics that are larger than these values are automatically scaled to this maximum size. It is sufficient if either of the two values is reached or exceeded. The graphics are always scaled proportionally. It is not necessary to set both values the max. values can also be used independently.
If the options are set before N2PDFAddRTContent or N2PDFAddAttachment are called, sizes are only adapted on new content.
If the size of any content is adapted, while leaving the remaining content in its original size, you must set both settings to "0" before calling the N2PDFProcess.
If size adaptation is to apply globally, you must set the desired figures before calling the N2PDFProcess. All images whose size has already been altered are then not changed any further.
Example: Graphics are allowed a maximum width of 10 cm and a height of 15 cm Call N2PDFSetOption ( JobID,_ N2PDFOPTION_IMAGE_MAX_WIDTH_IN_BODY, "10", "" )
Call N2PDFSetOption ( JobID,_ N2PDFOPTION_IMAGE_MAX_HEIGHT_IN_BODY, "15", "" )
N2PDFOPTION_IMAGE_TIFF_DPI_XY_ADJUSTMENT When this option is enabled, n2pdf takes into account different DPI values in the X/Y resolution of the graphics format. This option is intended for graphics formats in which the horizontal and vertical DPI values are different.
|