Convert PDF to PNG Images
  • 05 Jan 2023
  • 1 Minute to read
  • Dark
    Light

Convert PDF to PNG Images

  • Dark
    Light

Article summary

Step Details

Introduced in Version4.0.0
Last Modified in Version7.12.0
LocationData > PDF

The Convert PDF to PNG Images step converts a PDF document into a list of PNG files. This step is mainly used to create a PDF copy as a list of PNG images, with each new image representing a different page. 



Properties

Inputs

PropertyDescriptionData Type
PDF DocumentThe PDF documentFileData

Outputs

PropertyDescriptionData Type
OutputThe list of FileData representing the outputted list of PNG images. Each image represents a page from the PDF.FileData

Example Inputs and Outputs

InputOutput
.pdf fileList of PNG images. 
txt, doc, excel or other file typesEXCEPTION


Common Errors

Invalid File Type

If the inputted File is not a PDF Document, then the step will throw the following exception. To prevent this issue, ensure that the input file is in a valid PDF format when mapped to the step.

Exception Message:

Exception Stack Trace: DecisionsFramework.Design.Flow.ErrorRunningFlowStep: Error running step Convert PDF To PNG Images 1[ConvertPdfToPngImages] in flow [Testing]: Exception invoking method ConvertPdfToPngImages on class PdfManagementSteps ---> DecisionsFramework.LoggedException: Exception invoking method ConvertPdfToPngImages on class PdfManagementSteps ---> Aspose.Pdf.InvalidPdfFileFormatException: Incorrect file header
   at #=zrx8$vGff8rw0zOsJfXBx6dl$eHVthdMYUw==.#=zELiBKk0nn$NI()
   at #=zrx8$vGff8rw0zOsJfXBx6dl$eHVthdMYUw==..ctor(Stream #=zA6ZEq1c=, String #=zkZxG5Dc=, Boolean #=zFRe3SoGTg5hA)
   at Aspose.Pdf.Document.#=zyoo3pL0=(Stream #=z3RtBOxU=, String #=zkZxG5Dc=)
   at Aspose.Pdf.Document..ctor(Stream input)
   at DecisionsFramework.Design.Flow.CoreSteps.StandardSteps.DocumentManagementMethods.GetPdfDocFromFileData(FileData fileData)
   at DecisionsFramework.Design.Flow.CoreSteps.StandardSteps.PdfManagementSteps.ConvertPdfToPngImages(FileData PdfDocument) 
   --- End of inner exception stack trace ---
   at DecisionsFramework.Design.Flow.StepImplementations.InvokeMethodStep.Run(StepStartData data)
   at DecisionsFramework.Design.Flow.FlowStep.RunStepInternal(String flowTrackingID, String stepTrackingID, KeyValuePairDataStructure[] stepRunDataValues, AbstractFlowTrackingData trackingData)
   at DecisionsFramework.Design.Flow.FlowStep.Start(String flowTrackingID, String stepTrackingID, FlowStateData data, AbstractFlowTrackingData trackingData, RunningStepData currentStepData) 
   --- End of inner exception stack trace ---

Related Information

Forum Posts:


Was this article helpful?