Convert PDF to PNG Images
- 05 Jan 2023
- 1 Minute to read
- Print
- DarkLight
Convert PDF to PNG Images
- Updated on 05 Jan 2023
- 1 Minute to read
- Print
- DarkLight
Article summary
Did you find this summary helpful?
Thank you for your feedback
Step Details | |
Introduced in Version | 4.0.0 |
Last Modified in Version | 7.12.0 |
Location | Data > 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
Property | Description | Data Type |
---|---|---|
PDF Document | The PDF document | FileData |
Outputs
Property | Description | Data Type |
---|---|---|
Output | The list of FileData representing the outputted list of PNG images. Each image represents a page from the PDF. | FileData |
Example Inputs and Outputs
Input | Output |
---|---|
.pdf file | List of PNG images. |
txt, doc, excel or other file types | EXCEPTION |
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?