/*! ** ** \file ptbExportAPDFL.h ** ** \brief callas pdfEngine SDK: Export actions - APDFL interface ** ** \author © 2009-2011 callas software GmbH, Berlin, Germany - www.callassoftware.com ** */ /******************************************************************************/ #if !defined(PTB_EXPORT_APDFL_H) /*! \def PTB_EXPORT_APDFL_H header define */ #define PTB_EXPORT_APDFL_H /******************************************************************************/ #include "ptbTypes.h" #include "ptbProgress.h" /******************************************************************************/ #include "ptbProlog.h" /******************************************************************************/ /* include PRODUCT file for Acrobat library definition. */ #include "HFTLibrary.h" /* needed to define type of PDDoc */ #include "PDBasicExpT.h" /******************************************************************************/ /******************************************************************************* ** Export */ /*! ** \brief Save as EPS ** Converts the PDF into EPS. ** */ PTB_FUNC_PROTO enum PTB_EError PTB_PDDocSaveAsEPS( PDDoc src /*!< PDF document */ , enum PTB_EPostScriptLevel postscriptLevel /*!< PostScript level [2|3] */ , PTB_uint32_t flags /*!< Flags (any combination of PTB_EEPSFlags values) */ , PTB_float_t lineWeight /*!< Line weight of cut marks in pt */ , const PTB_utf8_char_t* simulationProfile /*!< Simulation profile, default: 'ISO Coated v2 (ECI)' - only applied if 'colormanagement' is true */ , PTB_uint16_t transparencyQuality /*!< Transparency quality in % */ , PTB_uint32_t gradientResolution /*!< Gradient resolution in ppi */ , PTB_uint32_t bitmapResolution /*!< Bitmap resolution in ppi */ , PTB_uint32_t firstPage /*!< First page, this is a zero based index, i.e. first page has value of 0 (zero) */ , PTB_uint32_t lastPage /*!< Last page; might be PTB_MAX_END_PAGE for all pages */ , const PTB_Path_t* destFolder /*!< Destination folder path (including folder name) */ , PTB_SaveAsEPSCB cbSaveAsEPS /*!< Callback function to be called for every created PDF, might be NULL */ , void* cbSaveAsEPSUserData /*!< User data submitted to callback function */ , PTB_ProgressCB cbProgress /*!< Progress CB function to be called during processing, might be NULL */ , void* cbProgressUserData /*!< User data submitted to progress callback function */ ); /*! ** \brief Save as Image ** Renders an image per page preserveing the page aspect ratio. ** */ PTB_FUNC_PROTO enum PTB_EError PTB_PDDocSaveAsImage( PDDoc src /*!< PDF document */ , enum PTB_EImageFormat imageFormat /*!< JPEG, PNG, TIFF or PDF */ , const PTB_sys_char_t* resolution /*!< Resolution in ppi (e.g. 72) or width x height in pixel (e.g. 1024x800) */ , enum PTB_EJPEGFormat jpegFormat /*!< JPEG format - only applied if 'imageFormat' is PTB_eJPEG or PTB_ePDF */ , enum PTB_ECompression compression /*!< Compression - only applied if 'imageFormat' is PTB_eJPEG, PTB_ePDF or PTB_eTIFF */ , PTB_uint32_t firstPage /*!< First page, this is a zero based index, i.e. first page has value of 0 (zero) */ , PTB_uint32_t lastPage /*!< Last page; might be PTB_MAX_END_PAGE for all pages */ , const PTB_Path_t* destFolder /*!< Destination folder path (including folder name) */ , PTB_SaveAsImageCB cbSaveAsImage /*!< Callback function to be called for every created PDF, might be NULL */ , void* cbSaveAsImageUserData /*!< User data submitted to callback function */ , PTB_ProgressCB cbProgress /*!< Progress CB function to be called during processing, might be NULL */ , void* cbProgressUserData /*!< User data submitted to progress callback function */ ); PTB_FUNC_PROTO enum PTB_EError PTB_PDDocSaveAsImage2( PDDoc src /*!< PDF document */ , enum PTB_EImageFormat imageFormat /*!< JPEG, PNG, TIFF or PDF */ , PTB_uint32_t resolution /*!< Resolution in ppi (e.g. 72) */ , PTB_uint32_t width /*!< width in pixel - only applied if 'resolution' equal 0 */ , PTB_uint32_t height /*!< height in pixel - only applied if 'resolution' equal 0 */ , enum PTB_EJPEGFormat jpegFormat /*!< JPEG format - only applied if 'imageFormat' is PTB_eJPEG or PTB_ePDF */ , enum PTB_ECompression compression /*!< Compression - only applied if 'imageFormat' is PTB_eJPEG, PTB_ePDF or PTB_eTIFF */ , enum PTB_EColorSpace colorspace /*!< Color space */ , PTB_uint32_t firstPage /*!< First page, this is a zero based index, i.e. first page has value of 0 (zero) */ , PTB_uint32_t lastPage /*!< Last page; might be PTB_MAX_END_PAGE for all pages */ , const PTB_Path_t* destFolder /*!< Destination folder path (including folder name) */ , PTB_SaveAsImageCB cbSaveAsImage /*!< Callback function to be called for every created PDF, might be NULL */ , void* cbSaveAsImageUserData /*!< User data submitted to callback function */ , PTB_ProgressCB cbProgress /*!< Progress CB function to be called during processing, might be NULL */ , void* cbProgressUserData /*!< User data submitted to progress callback function */ ); PTB_FUNC_PROTO enum PTB_EError PTB_PDDocSaveAsImage3( PDDoc src /*!< PDF document */ , enum PTB_EImageFormat imageFormat /*!< JPEG, PNG, TIFF or PDF */ , PTB_uint32_t resolution /*!< Resolution in ppi (e.g. 72) */ , PTB_uint32_t width /*!< width in pixel - only applied if 'resolution' equal 0 */ , PTB_uint32_t height /*!< height in pixel - only applied if 'resolution' equal 0 */ , enum PTB_EJPEGFormat jpegFormat /*!< JPEG format - only applied if 'imageFormat' is PTB_eJPEG or PTB_ePDF */ , enum PTB_ECompression compression /*!< Compression - only applied if 'imageFormat' is PTB_eJPEG, PTB_ePDF or PTB_eTIFF */ , enum PTB_EColorSpace colorspace /*!< Color space */ , PTB_uint32_t flags /*!< Flags (any combination of PTB_EImageFlags values) */ , PTB_uint32_t firstPage /*!< First page, this is a zero based index, i.e. first page has value of 0 (zero) */ , PTB_uint32_t lastPage /*!< Last page; might be PTB_MAX_END_PAGE for all pages */ , const PTB_Path_t* destFolder /*!< Destination folder path (including folder name) */ , PTB_SaveAsImageCB cbSaveAsImage /*!< Callback function to be called for every created PDF, might be NULL */ , void* cbSaveAsImageUserData /*!< User data submitted to callback function */ , PTB_ProgressCB cbProgress /*!< Progress CB function to be called during processing, might be NULL */ , void* cbProgressUserData /*!< User data submitted to progress callback function */ ); PTB_FUNC_PROTO enum PTB_EError PTB_PDDocSaveAsImage4( PDDoc src /*!< PDF document */ , enum PTB_EImageFormat imageFormat /*!< JPEG, PNG, TIFF or PDF */ , PTB_uint32_t resolution /*!< Resolution in ppi (e.g. 72) */ , PTB_uint32_t width /*!< width in pixel - only applied if 'resolution' equal 0 */ , PTB_uint32_t height /*!< height in pixel - only applied if 'resolution' equal 0 */ , enum PTB_EJPEGFormat jpegFormat /*!< JPEG format - only applied if 'imageFormat' is PTB_eJPEG or PTB_ePDF */ , enum PTB_ECompression compression /*!< Compression - only applied if 'imageFormat' is PTB_eJPEG, PTB_ePDF or PTB_eTIFF */ , enum PTB_EColorSpace colorspace /*!< Color space */ , const PTB_Path_t* simulationProfile /*!< Simulation profile: Path to ICC profile or Description of ICC profile or OUTPUTINTENT or NULL */ , PTB_uint32_t flags /*!< Flags (any combination of PTB_EImageFlags values) */ , PTB_uint32_t firstPage /*!< First page, this is a zero based index, i.e. first page has value of 0 (zero) */ , PTB_uint32_t lastPage /*!< Last page; might be PTB_MAX_END_PAGE for all pages */ , const PTB_Path_t* destFolder /*!< Destination folder path (including folder name) */ , PTB_SaveAsImageCB cbSaveAsImage /*!< Callback function to be called for every created PDF, might be NULL */ , void* cbSaveAsImageUserData /*!< User data submitted to callback function */ , PTB_ProgressCB cbProgress /*!< Progress CB function to be called during processing, might be NULL */ , void* cbProgressUserData /*!< User data submitted to progress callback function */ ); PTB_FUNC_PROTO enum PTB_EError PTB_PDDocSaveAsImage5( PDDoc src /*!< PDF document */ , enum PTB_EImageFormat imageFormat /*!< JPEG, PNG, TIFF or PDF */ , PTB_uint32_t resolution /*!< Resolution in ppi (e.g. 72) */ , PTB_uint32_t width /*!< width in pixel - only applied if 'resolution' equal 0 */ , PTB_uint32_t height /*!< height in pixel - only applied if 'resolution' equal 0 */ , enum PTB_EJPEGFormat jpegFormat /*!< JPEG format - only applied if 'imageFormat' is PTB_eJPEG or PTB_ePDF */ , enum PTB_ECompression compression /*!< Compression - only applied if 'imageFormat' is PTB_eJPEG, PTB_ePDF or PTB_eTIFF */ , enum PTB_EColorSpace colorspace /*!< Color space */ , const PTB_Path_t* simulationProfile /*!< Simulation profile: Path to ICC profile or Description of ICC profile or OUTPUTINTENT or NULL */ , PTB_uint32_t flags /*!< Flags (any combination of PTB_EImageFlags values) */ , enum PTB_EPageBox pagebox /*!< Render pages using a page geometry box - ignored if imageFormat is PTB_eImgPDF */ , const PTB_sys_char_t* rect /*!< Render only part of page relative to 'pagebox'; syntax: ,,,[] (Optional unit for coordinates: pt, mm, in (default: pt)), might be NULL */ , PTB_uint32_t firstPage /*!< First page, this is a zero based index, i.e. first page has value of 0 (zero) */ , PTB_uint32_t lastPage /*!< Last page; might be PTB_MAX_END_PAGE for all pages */ , const PTB_Path_t* destFolder /*!< Destination folder path (including folder name) */ , PTB_SaveAsImageCB cbSaveAsImage /*!< Callback function to be called for every created PDF, might be NULL */ , void* cbSaveAsImageUserData /*!< User data submitted to callback function */ , PTB_ProgressCB cbProgress /*!< Progress CB function to be called during processing, might be NULL */ , void* cbProgressUserData /*!< User data submitted to progress callback function */ ); /*! ** \brief Save as PostScript ** Converts the PDF into PostScript. ** */ PTB_FUNC_PROTO enum PTB_EError PTB_PDDocSaveAsPostScript( PDDoc src /*!< PDF document */ , enum PTB_EPostScriptLevel postscriptLevel /*!< PostScript level [2|3] */ , PTB_uint32_t flags /*!< Flags (any combination of PTB_EPostScriptFlags values) */ , PTB_float_t lineWeight /*!< Line weight of cut marks in pt */ , const PTB_utf8_char_t* simulationProfile /*!< Simulation profile, default: 'ISO Coated v2 (ECI)' only applied if 'PTB_ePSApplyColormanagement' is used */ , PTB_uint16_t transparencyQuality /*!< Transparency quality in % */ , PTB_uint32_t gradientResolution /*!< Gradient resolution in ppi */ , PTB_uint32_t bitmapResolution /*!< Bitmap resolution in ppi */ , PTB_uint32_t firstPage /*!< First page, this is a zero based index, i.e. first page has value of 0 (zero) */ , PTB_uint32_t lastPage /*!< Last page; might be PTB_MAX_END_PAGE for all pages */ , const PTB_Path_t* dest /*!< Destination path (including file name) */ , PTB_ProgressCB cbProgress /*!< Progress CB function to be called during processing, might be NULL */ , void* cbProgressUserData /*!< User data submitted to progress callback function */ ); /*! ** \brief Save as HTML ** Converts the tagged PDF into HTML. ** */ PTB_FUNC_PROTO enum PTB_EError PTB_PDDocSaveAsHTML( PDDoc src /*!< PDF document */ , const PTB_Path_t* styleFolder /*!< Custom style folder, might be NULL to ignore */ , const PTB_Path_t* destFolder /*!< Destination folder path (including folder name) */ , PTB_ProgressCB cbProgress /*!< Progress CB function to be called during processing, might be NULL */ , void* cbProgressUserData /*!< User data submitted to progress callback function */ ); /*! ** \brief Save as EPUB ** Converts the tagged PDF into EPUB. ** */ PTB_FUNC_PROTO enum PTB_EError PTB_PDDocSaveAsEPUB( PDDoc src /*!< PDF document */ , const PTB_Path_t* styleFolder /*!< Custom style folder, might be NULL to ignore */ , const PTB_Path_t* dest /*!< Destination path (including file name) */ , PTB_ProgressCB cbProgress /*!< Progress CB function to be called during processing, might be NULL */ , void* cbProgressUserData /*!< User data submitted to progress callback function */ ); /*******************************************************************************/ #include "ptbEpilog.h" /******************************************************************************/ #endif /*PTB_EXPORT_APDFL_H*/ /******************************************************************************/ /* EOF */