Applies transformation on the specified pages.
public void SetViewPerspective(RasterViewPerspective viewPerspective,int firstPageNumber,int lastPageNumber)
public:void SetViewPerspective(RasterViewPerspective^ viewPerspective,Int32 firstPageNumber,Int32 lastPageNumber)
def SetViewPerspective(self,viewPerspective,firstPageNumber,lastPageNumber):
viewPerspective
View perspective value to apply.
1-based first page number in the document. This value must be greater than or equal to 1.
lastPageNumber
1-based last page number in the document. This value must be greater or equal to
This method loops through all the pages specified and sets the value of DocumentPage.ViewPerspective to viewPerspective. For more information, refer to Document Page Transformation.
using Leadtools;using Leadtools.Document;using Leadtools.Document.Converter;using Leadtools.Document.Writer;public void DocumentPagesSetViewPerspectiveExample(){var documentUri = new Uri("https://demo.leadtools.com/images/pdf/leadtools.pdf");string documentFile = Path.Combine(LEAD_VARS.ImagesDir, "PagesModified.pdf");// Load this documentvar loadDocumentOptions = new LoadDocumentOptions();using (var document = DocumentFactory.LoadFromUri(documentUri, loadDocumentOptions)){using (var documentConverter = new DocumentConverter()){// Documents are read-only by default and we cannot modify them. Fix thatdocument.IsReadOnly = false;// This document has 5 pagesDocumentPages pages = document.Pages;// SetViewPerspective on all of the pagespages.SetViewPerspective(RasterViewPerspective.BottomLeft270, 1, 5);var jobData = new DocumentConverterJobData();// The loaded document is our inputjobData.Document = document;// We want PDF as outputjobData.DocumentFormat = DocumentFormat.Pdf;// Into this filejobData.OutputDocumentFileName = documentFile;var job = documentConverter.Jobs.CreateJob(jobData);documentConverter.Jobs.RunJob(job);}}// Show the resultProcess.Start(documentFile);}static class LEAD_VARS{public const string ImagesDir = @"C:\LEADTOOLS22\Resources\Images";}
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document
