Skip to main content
thegeneral1223
Participant
Jul 30, 2020 10:30 PM UTC
Question

Export PDF to JPG - PDF Tools API - C#

For the code below, is there a way to define the resolution that the output will be generated?  The API creates a rather low resolution image.  I would like to create a much high resolution image.

--------------------------------------------------------------------------

 

ExecutionContext executionContext = ExecutionContext.Create(credentials);
ExportPDFOperation exportPdfOperation = ExportPDFOperation.CreateNew(ExportPDFTargetFormat.PNG);

// Set operation input from a source file.
FileRef sourceFileRef = FileRef.CreateFromLocalFile(@"exportPdfToImageInput.pdf");
exportPdfOperation.SetInput(sourceFileRef);


// Execute the operation.
FileRef result = exportPdfOperation.Execute(executionContext);

 

 

 

    This topic is closed to new replies. Start a new post to keep the conversation going.

    3 replies

    Participating Frequently
    Oct 6, 2020 11:45 AM UTC

    Thanks for reaching out to us. As of now we do not support setting up resolution of the output images exported from a given PDF file through our SDKs.

    Translate
    Participant
    Oct 18, 2021 1:35 PM UTC

    Hi Adobe - any plans to implement this in the future?

    We would also like to use the your API to export to PNG - but we need to be able to define the resolution as per the AdobeDC desktop application.

    Translate
    Participant
    May 31, 2022 9:58 AM UTC

    Hi Adobe, this would really be very useful to be able to adjust the resolution and other parameters, as we are able to do with the desktop Adobe DC application... Any update if this will be implemented? 

    Translate