Pdftools SDK
|
Go to the source code of this file.
Macros | |
#define | PDFTOOLS_CALL |
#define PDFTOOLS_CALL |
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsImage2Pdf_Auto_GetDefaultPageMargin | ( | TPdfToolsImage2Pdf_Auto * | pAuto, |
TPdfToolsGeomUnits_Margin * | pDefaultPageMargin ) |
The default page margin Default value: 20mm (0.79in)
[in,out] | pAuto | Acts as a handle to the native object of type TPdfToolsImage2Pdf_Auto. |
[out] | pDefaultPageMargin | Retrieved value. |
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsImage2Pdf_Auto_GetMaxPageSize | ( | TPdfToolsImage2Pdf_Auto * | pAuto, |
TPdfToolsGeomUnits_Size * | pMaxPageSize ) |
The maximum page size.
Each image is scaled individually such that neither the width nor the height exceeds the maximum page size. For landscape images the maximum page size is assumed to be landscape, and equivalently for portrait images.
Default value: "A4" (210mm 297mm)
[in,out] | pAuto | Acts as a handle to the native object of type TPdfToolsImage2Pdf_Auto. |
[out] | pMaxPageSize | Retrieved value. |
PDFTOOLS_EXPORT TPdfToolsImage2Pdf_Auto *PDFTOOLS_CALL PdfToolsImage2Pdf_Auto_New | ( | void | ) |
NULL
if there is an error.
NULL
is returned. The specific error code can be retrieved by calling PdfTools_GetLastError. The error message can be obtained by calling PdfTools_GetLastErrorMessage. PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsImage2Pdf_Auto_SetDefaultPageMargin | ( | TPdfToolsImage2Pdf_Auto * | pAuto, |
const TPdfToolsGeomUnits_Margin * | pDefaultPageMargin ) |
The default page margin Default value: 20mm (0.79in)
[in,out] | pAuto | Acts as a handle to the native object of type TPdfToolsImage2Pdf_Auto. |
[in] | pDefaultPageMargin | Set value. |
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsImage2Pdf_Auto_SetMaxPageSize | ( | TPdfToolsImage2Pdf_Auto * | pAuto, |
const TPdfToolsGeomUnits_Size * | pMaxPageSize ) |
The maximum page size.
Each image is scaled individually such that neither the width nor the height exceeds the maximum page size. For landscape images the maximum page size is assumed to be landscape, and equivalently for portrait images.
Default value: "A4" (210mm 297mm)
[in,out] | pAuto | Acts as a handle to the native object of type TPdfToolsImage2Pdf_Auto. |
[in] | pMaxPageSize | Set value. |
PDFTOOLS_EXPORT TPdfToolsPdf_Document *PDFTOOLS_CALL PdfToolsImage2Pdf_Converter_Convert | ( | TPdfToolsImage2Pdf_Converter * | pConverter, |
TPdfToolsImage_Document * | pImage, | ||
const TPdfToolsSys_StreamDescriptor * | pOutStreamDesc, | ||
TPdfToolsImage2PdfProfiles_Profile * | pProfile, | ||
TPdfToolsPdf_OutputOptions * | pOutOptions ) |
Convert an image to a PDF document.
[in,out] | pConverter | Acts as a handle to the native object of type TPdfToolsImage2Pdf_Converter. |
[in,out] | pImage | The input image document containing one or more pages. |
[in,out] | pOutStreamDesc | The stream to which the PDF is written. |
[in,out] | pProfile | The profile defines the properties of the output document and how the images are placed onto the pages. For details, see TPdfToolsImage2PdfProfiles_Profile. |
[in,out] | pOutOptions | The PDF output options, e.g. to encrypt the output document. |
Note that, this object must be disposed before the output stream object (method argument pOutStreamDesc).
NULL
if there is an error.
NULL
is returned. The specific error code can be retrieved by calling PdfTools_GetLastError. The error message can be obtained by calling PdfTools_GetLastErrorMessage. Possible error codes:PDFTOOLS_EXPORT TPdfToolsPdf_Document *PDFTOOLS_CALL PdfToolsImage2Pdf_Converter_ConvertMultiple | ( | TPdfToolsImage2Pdf_Converter * | pConverter, |
TPdfToolsImage_DocumentList * | pImages, | ||
const TPdfToolsSys_StreamDescriptor * | pOutStreamDesc, | ||
TPdfToolsImage2PdfProfiles_Profile * | pProfile, | ||
TPdfToolsPdf_OutputOptions * | pOutOptions ) |
Convert a list of images to a PDF document.
[in,out] | pConverter | Acts as a handle to the native object of type TPdfToolsImage2Pdf_Converter. |
[in,out] | pImages | The input image document list, each image containing one or more pages. |
[in,out] | pOutStreamDesc | The stream to which the PDF is written. |
[in,out] | pProfile | The profile defines the properties of the output document and how the images are placed onto the pages. For details, see TPdfToolsImage2PdfProfiles_Profile. |
[in,out] | pOutOptions | The PDF output options, e.g. to encrypt the output document. |
Note that, this object must be disposed before the output stream object (method argument pOutStreamDesc).
NULL
if there is an error.
NULL
is returned. The specific error code can be retrieved by calling PdfTools_GetLastError. The error message can be obtained by calling PdfTools_GetLastErrorMessage. Possible error codes:PDFTOOLS_EXPORT TPdfToolsImage2Pdf_Converter *PDFTOOLS_CALL PdfToolsImage2Pdf_Converter_New | ( | void | ) |
NULL
if there is an error.
NULL
is returned. The specific error code can be retrieved by calling PdfTools_GetLastError. The error message can be obtained by calling PdfTools_GetLastErrorMessage. PDFTOOLS_EXPORT TPdfToolsImage2Pdf_ImageMappingType PDFTOOLS_CALL PdfToolsImage2Pdf_ImageMapping_GetType | ( | TPdfToolsImage2Pdf_ImageMapping * | pImageMapping | ) |
Get actual derived type of base type TPdfToolsImage2Pdf_ImageMapping.
This function is invoked prior to downcasting to ascertain the derived object type.
[in,out] | pImageMapping | Acts as a handle to a native object. |
0
in case of an error.0
is returned. The specific error code can be retrieved by calling PdfTools_GetLastError. The error message can be obtained by calling PdfTools_GetLastErrorMessage. PDFTOOLS_EXPORT TPdfToolsImage2Pdf_ImageMapping *PDFTOOLS_CALL PdfToolsImage2Pdf_ImageOptions_GetMapping | ( | TPdfToolsImage2Pdf_ImageOptions * | pImageOptions | ) |
The image mapping.
The image mapping specifies how an input image is transformed and placed onto the output PDF page.
Default: TPdfToolsImage2Pdf_ShrinkToFit
[in,out] | pImageOptions | Acts as a handle to the native object of type TPdfToolsImage2Pdf_ImageOptions. |
NULL
if there is an error.
NULL
is returned. The specific error code can be retrieved by calling PdfTools_GetLastError. The error message can be obtained by calling PdfTools_GetLastErrorMessage. PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsImage2Pdf_ImageOptions_SetMapping | ( | TPdfToolsImage2Pdf_ImageOptions * | pImageOptions, |
TPdfToolsImage2Pdf_ImageMapping * | pMapping ) |
The image mapping.
The image mapping specifies how an input image is transformed and placed onto the output PDF page.
Default: TPdfToolsImage2Pdf_ShrinkToFit
[in,out] | pImageOptions | Acts as a handle to the native object of type TPdfToolsImage2Pdf_ImageOptions. |
[in,out] | pMapping | Set value. |
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsImage2Pdf_ShrinkToFit_GetPageMargin | ( | TPdfToolsImage2Pdf_ShrinkToFit * | pShrinkToFit, |
TPdfToolsGeomUnits_Margin * | pPageMargin ) |
The page margin Default value: 20mm (0.79in)
[in,out] | pShrinkToFit | Acts as a handle to the native object of type TPdfToolsImage2Pdf_ShrinkToFit. |
[out] | pPageMargin | Retrieved value. |
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsImage2Pdf_ShrinkToFit_GetPageSize | ( | TPdfToolsImage2Pdf_ShrinkToFit * | pShrinkToFit, |
TPdfToolsGeomUnits_Size * | pPageSize ) |
The page size.
All output pages are created as that size.
Default value: "A4" (210mm 297mm)
[in,out] | pShrinkToFit | Acts as a handle to the native object of type TPdfToolsImage2Pdf_ShrinkToFit. |
[out] | pPageSize | Retrieved value. |
PDFTOOLS_EXPORT TPdfToolsImage2Pdf_ShrinkToFit *PDFTOOLS_CALL PdfToolsImage2Pdf_ShrinkToFit_New | ( | void | ) |
NULL
if there is an error.
NULL
is returned. The specific error code can be retrieved by calling PdfTools_GetLastError. The error message can be obtained by calling PdfTools_GetLastErrorMessage. PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsImage2Pdf_ShrinkToFit_SetPageMargin | ( | TPdfToolsImage2Pdf_ShrinkToFit * | pShrinkToFit, |
const TPdfToolsGeomUnits_Margin * | pPageMargin ) |
The page margin Default value: 20mm (0.79in)
[in,out] | pShrinkToFit | Acts as a handle to the native object of type TPdfToolsImage2Pdf_ShrinkToFit. |
[in] | pPageMargin | Set value. |
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsImage2Pdf_ShrinkToFit_SetPageSize | ( | TPdfToolsImage2Pdf_ShrinkToFit * | pShrinkToFit, |
const TPdfToolsGeomUnits_Size * | pPageSize ) |
The page size.
All output pages are created as that size.
Default value: "A4" (210mm 297mm)
[in,out] | pShrinkToFit | Acts as a handle to the native object of type TPdfToolsImage2Pdf_ShrinkToFit. |
[in] | pPageSize | Set value. |
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsImage2Pdf_ShrinkToPage_GetPageMargin | ( | TPdfToolsImage2Pdf_ShrinkToPage * | pShrinkToPage, |
TPdfToolsGeomUnits_Margin * | pPageMargin ) |
The page margin Default value: 20mm (0.79in)
[in,out] | pShrinkToPage | Acts as a handle to the native object of type TPdfToolsImage2Pdf_ShrinkToPage. |
[out] | pPageMargin | Retrieved value. |
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsImage2Pdf_ShrinkToPage_GetPageSize | ( | TPdfToolsImage2Pdf_ShrinkToPage * | pShrinkToPage, |
TPdfToolsGeomUnits_Size * | pPageSize ) |
The page size.
All output pages are created with that size. The default page orientation is portrait, but if the image fits better, the page is rotated to landscape.
Default value: "A4" (210mm 297mm)
[in,out] | pShrinkToPage | Acts as a handle to the native object of type TPdfToolsImage2Pdf_ShrinkToPage. |
[out] | pPageSize | Retrieved value. |
PDFTOOLS_EXPORT TPdfToolsImage2Pdf_ShrinkToPage *PDFTOOLS_CALL PdfToolsImage2Pdf_ShrinkToPage_New | ( | void | ) |
NULL
if there is an error.
NULL
is returned. The specific error code can be retrieved by calling PdfTools_GetLastError. The error message can be obtained by calling PdfTools_GetLastErrorMessage. PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsImage2Pdf_ShrinkToPage_SetPageMargin | ( | TPdfToolsImage2Pdf_ShrinkToPage * | pShrinkToPage, |
const TPdfToolsGeomUnits_Margin * | pPageMargin ) |
The page margin Default value: 20mm (0.79in)
[in,out] | pShrinkToPage | Acts as a handle to the native object of type TPdfToolsImage2Pdf_ShrinkToPage. |
[in] | pPageMargin | Set value. |
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsImage2Pdf_ShrinkToPage_SetPageSize | ( | TPdfToolsImage2Pdf_ShrinkToPage * | pShrinkToPage, |
const TPdfToolsGeomUnits_Size * | pPageSize ) |
The page size.
All output pages are created with that size. The default page orientation is portrait, but if the image fits better, the page is rotated to landscape.
Default value: "A4" (210mm 297mm)
[in,out] | pShrinkToPage | Acts as a handle to the native object of type TPdfToolsImage2Pdf_ShrinkToPage. |
[in] | pPageSize | Set value. |
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsImage2Pdf_ShrinkToPortrait_GetPageMargin | ( | TPdfToolsImage2Pdf_ShrinkToPortrait * | pShrinkToPortrait, |
TPdfToolsGeomUnits_Margin * | pPageMargin ) |
The page margin Default value: 20mm (0.79in)
[in,out] | pShrinkToPortrait | Acts as a handle to the native object of type TPdfToolsImage2Pdf_ShrinkToPortrait. |
[out] | pPageMargin | Retrieved value. |
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsImage2Pdf_ShrinkToPortrait_GetPageSize | ( | TPdfToolsImage2Pdf_ShrinkToPortrait * | pShrinkToPortrait, |
TPdfToolsGeomUnits_Size * | pPageSize ) |
The page size.
All output pages are created as that size and in portrait mode.
Default value: "A4" (210mm 297mm)
[in,out] | pShrinkToPortrait | Acts as a handle to the native object of type TPdfToolsImage2Pdf_ShrinkToPortrait. |
[out] | pPageSize | Retrieved value. |
PDFTOOLS_EXPORT TPdfToolsImage2Pdf_ShrinkToPortrait *PDFTOOLS_CALL PdfToolsImage2Pdf_ShrinkToPortrait_New | ( | void | ) |
NULL
if there is an error.
NULL
is returned. The specific error code can be retrieved by calling PdfTools_GetLastError. The error message can be obtained by calling PdfTools_GetLastErrorMessage. PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsImage2Pdf_ShrinkToPortrait_SetPageMargin | ( | TPdfToolsImage2Pdf_ShrinkToPortrait * | pShrinkToPortrait, |
const TPdfToolsGeomUnits_Margin * | pPageMargin ) |
The page margin Default value: 20mm (0.79in)
[in,out] | pShrinkToPortrait | Acts as a handle to the native object of type TPdfToolsImage2Pdf_ShrinkToPortrait. |
[in] | pPageMargin | Set value. |
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsImage2Pdf_ShrinkToPortrait_SetPageSize | ( | TPdfToolsImage2Pdf_ShrinkToPortrait * | pShrinkToPortrait, |
const TPdfToolsGeomUnits_Size * | pPageSize ) |
The page size.
All output pages are created as that size and in portrait mode.
Default value: "A4" (210mm 297mm)
[in,out] | pShrinkToPortrait | Acts as a handle to the native object of type TPdfToolsImage2Pdf_ShrinkToPortrait. |
[in] | pPageSize | Set value. |