Call the view method of the Viewer object. Specify the new page order in the last parameters.
The following code snippet shows how to reorder pages:
withgv.Viewer("sample.docx")asviewer:# Create view options.viewOptions=gvo.PdfViewOptions()# Pass page numbers in the order you want to render them.viewer.view(viewOptions,2,1)
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.