You are viewing limited content. For full access, please sign in.

Question

Question

SDK 8.3 - DocumentExporter - PDF type Constant Value?

SDK
asked on November 14, 2014

Howdy!

Can someone give me the numeric values for the format type option in the DocumentExporter?  The language I use (via COM) can't use the named constants.  I have to use numeric instead.  I'm trying to export as a compressed PDF if available but it'd be nice to have all the format numeric values and their names if possible.


Thanks!

0 0

Replies

replied on November 14, 2014

here is the enumeration:

DOCUMENT_FORMAT_TIFF	= 0,
DOCUMENT_FORMAT_PNG	= 1,
DOCUMENT_FORMAT_TWO_COLOR_PNG	= 2,
DOCUMENT_FORMAT_TEXT	= 4,
DOCUMENT_FORMAT_DIB	= 5,
DOCUMENT_FORMAT_JPEG	= 6,
DOCUMENT_FORMAT_TIFFG4	= 7,
DOCUMENT_FORMAT_TIFFLZW	= 8,
DOCUMENT_FORMAT_TIFFJPEG	= 9,
DOCUMENT_FORMAT_GIF	= 10,
DOCUMENT_FORMAT_ELECTRONICFILE	= 11,
DOCUMENT_FORMAT_RAW	= 12,
DOCUMENT_FORMAT_BMP	= 13,
DOCUMENT_FORMAT_PCX	= 14,
DOCUMENT_FORMAT_JPEGXR	= 15,
DOCUMENT_FORMAT_EMBED_FAVOR_QUALITY	= 16,
DOCUMENT_FORMAT_EMBED_FAVOR_SIZE	= 17,
DOCUMENT_FORMAT_EMBED_FAVOR_PDFA	= 18

 

0 0
replied on November 14, 2014

Thanks! .... but...

... wait, do I use 18 or is there a separate function I'm missing to specifically export as PDF?  In version 8.3.  I'm in the middle of a fire drill programming thing for a huge presentation otherwise, I'd upgrade to SDK 9.2 so I had help files again.

If there's a specific option to export as PDF, could you help with the call for it?  I'm currently just using ExportToFile() from DocumentExporter.

0 0
replied on November 14, 2014

Sorry, for PDF export you should use the PDFExporter library, which is covered in the SDK documentation.

0 0
replied on November 14, 2014

Figures.  I'll try to dig around for my doc files =/

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.