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

Question

Question

How to export a JPG

SDK
asked on May 21, 2020

Hi all. (been awhile, so I'm lost.)

I've always used the SDK (9.x) to export a PDF file (exporter.ExportPdf)

But now I need to export a single page to JPG and can't find any clue or sample.

Can anyone point me in the right direction?

Thanks.

 

 

 

0 0

Answer

SELECTED ANSWER
replied on May 21, 2020 Show version history

Edward,

The DocumentExporter object exposes the ExportPage method.  That method accepts the document (cast as a DocumentInfo ), the page number (1 based), and the stream or file path to export to.  From the SDK documentation;

public void ExportPage(
	IDocumentContents document,
	int pageNumber,
	string outputPath
)

The DocumentExporter.PageFormat property will allow you to select the DocumentPageFormat.Jpeg enumeration to export the document as a JPG.  In addition the DocumentExporter.CompressionQuality property will allow you to set the quality of the exported image.  The compression ranges from 0 (most compression, lowest image quality) to 100 (least compression, highest image quality).

1 0
replied on May 22, 2020

Thank you so much for the tip Cliff. Hope to get this going today.

0 0

Replies

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

Sign in to reply to this post.