Aspose::Pdf::Facades::PdfConverter class

PdfConverter class

Represents a class to convert a pdf file’s each page to images, supporting BMP, JPEG, PNG and TIFF now. Supported content in pdfs: pictures, form, comment.

class PdfConverter : public Aspose::Pdf::Facades::Facade

Methods

MethodDescription
BindPdf(System::String) overrideBinds a Pdf file for converting.
BindPdf(System::SharedPtr<System::IO::Stream>) overrideBinds a Pdf Stream for convert.
BindPdf(System::SharedPtr<Aspose::Pdf::Document>) overrideInitializes the facade.
virtual BindPdf(System::SharedPtr<Document>)Binds PDF document for editing.
Close() overrideClose the instance of PdfConverter and release the resources.
Dispose() overrideDisposes the facade.
DoConvert()Do some initial works for converting a pdf document to images.
get_CoordinateType() constGets the page coordinate type (Media/Crop boxes). CropBox value is used by default.
get_Document() constGets the document facade is working on.
get_EndPage()Gets end position which you want to convert.
get_FormPresentationMode() constGets form presentation mode.
get_PageCount()Gets the page count.
get_Password() constGets document OwnerPassword.
get_RenderingOptions() constGets rendering options.
get_Resolution() constGets resolution during convertting. The higher resolution, the slower convertting speed. The default value is 150.
get_ShowHiddenAreas() constGets flag that controls visibility of hidden areas on the page.
get_StartPage() constGets start position which you want to convert. The minimal value is 1.
get_UserPassword() constGets document UserPassword.
GetNextImage(System::String)Saves image to file with default image format - jpeg.
GetNextImage(System::String, System::SharedPtr<PageSize>)Saves image to file with ith given page size and default image format - jpeg.
GetNextImage(System::String, System::SharedPtr<System::Drawing::Imaging::ImageFormat>)Saves image to file with the givin image format.
GetNextImage(System::String, System::SharedPtr<PageSize>, System::SharedPtr<System::Drawing::Imaging::ImageFormat>)Saves image to file with given page size and image format.
GetNextImage(System::SharedPtr<System::IO::Stream>)Saves image to stream with default image format - jpeg.
GetNextImage(System::SharedPtr<System::IO::Stream>, System::SharedPtr<PageSize>)Saves image to stream with given page size.
GetNextImage(System::SharedPtr<System::IO::Stream>, System::SharedPtr<System::Drawing::Imaging::ImageFormat>)Saves image to stream with given image format.
GetNextImage(System::SharedPtr<System::IO::Stream>, System::SharedPtr<PageSize>, System::SharedPtr<System::Drawing::Imaging::ImageFormat>)Saves image to stream with given page size.
GetNextImage(System::String, System::SharedPtr<System::Drawing::Imaging::ImageFormat>, int32_t, int32_t, int32_t)Saves image to file with the given image format, dimensions and quality.
GetNextImage(System::SharedPtr<System::IO::Stream>, System::SharedPtr<System::Drawing::Imaging::ImageFormat>, int32_t, int32_t, int32_t)Saves image to stream with the givin image format, dimensions and quality.
GetNextImage(System::String, System::SharedPtr<System::Drawing::Imaging::ImageFormat>, double, double, int32_t)Saves image to file with the givin image format, image size, and quality.
GetNextImage(System::SharedPtr<System::IO::Stream>, System::SharedPtr<System::Drawing::Imaging::ImageFormat>, double, double, int32_t)Saves image to stream with the givin image format, size and quality.
GetNextImage(System::String, System::SharedPtr<System::Drawing::Imaging::ImageFormat>, int32_t, int32_t)Saves image to file with the given image format and dimensions.
GetNextImage(System::SharedPtr<System::IO::Stream>, System::SharedPtr<System::Drawing::Imaging::ImageFormat>, int32_t, int32_t)Saves image to stream with the givin image format, size and quality.
GetNextImage(System::SharedPtr<System::IO::Stream>, System::SharedPtr<System::Drawing::Imaging::ImageFormat>, int32_t)Saves image to stream with given image format and quality.
GetNextImage(System::SharedPtr<System::IO::Stream>, System::SharedPtr<PageSize>, System::SharedPtr<System::Drawing::Imaging::ImageFormat>, int32_t)Saves image to stream with given page size, image format and quality.
GetNextImage(System::String, System::SharedPtr<System::Drawing::Imaging::ImageFormat>, int32_t)Saves image to file with given image format and quality.
GetNextImage(System::String, System::SharedPtr<PageSize>, System::SharedPtr<System::Drawing::Imaging::ImageFormat>, int32_t)Saves image to file with given page size, image format and quality.
HasNextImage()Indicates whether the pdf file has more images or not.
static MergeImages(System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<System::IO::Stream>>>, Aspose::Pdf::Drawing::ImageFormat, ImageMergeMode, System::Nullable<int32_t>, System::Nullable<int32_t>)Merges list of image streams as one image stream. Png/jpg/tiff outputs formats are supported, in case of using non supported format output stream encoded as Jpeg by default.
static MergeImagesAsTiff(System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<System::IO::Stream>>>)Merges list of tiff streams as one multiple frames tiff stream.
PdfConverter()Initializes new PdfConverter object.
PdfConverter(System::SharedPtr<Aspose::Pdf::Document>)Initializes new PdfConverter object on base of the document .
SaveAsTIFF(System::String)Converts each pages of a pdf document to images and saves images to a single TIFF file.
SaveAsTIFF(System::String, Aspose::Pdf::Devices::CompressionType)Converts each pages of a pdf document to images and saves images to a single TIFF file.
SaveAsTIFF(System::String, int32_t, int32_t)Converts each pages of a pdf document to images with dimensions, and saves images to a single TIFF file.
SaveAsTIFF(System::String, System::SharedPtr<PageSize>)Converts each pages of a pdf document to images with page size and saves images to a single TIFF file.
SaveAsTIFF(System::String, System::SharedPtr<PageSize>, System::SharedPtr<Aspose::Pdf::Devices::TiffSettings>)Converts each pages of a pdf document to images with page size and saves images to a single TIFF file.
SaveAsTIFF(System::String, int32_t, int32_t, Aspose::Pdf::Devices::CompressionType)Converts each pages of a pdf document to images with dimensions, and saves images to a single TIFF file.
SaveAsTIFF(System::String, int32_t, int32_t, System::SharedPtr<Aspose::Pdf::Devices::TiffSettings>)Converts each pages of a pdf document to images with dimensions, and saves images to a single TIFF file.
SaveAsTIFF(System::String, int32_t, int32_t, System::SharedPtr<Aspose::Pdf::Devices::TiffSettings>, System::SharedPtr<IIndexBitmapConverter>)Converts each pages of a pdf document to images with dimensions, and saves images to a single TIFF file.
SaveAsTIFF(System::SharedPtr<System::IO::Stream>)Converts each pages of a pdf document to images and saves images to a single TIFF stream.
SaveAsTIFF(System::SharedPtr<System::IO::Stream>, Aspose::Pdf::Devices::CompressionType)Converts each pages of a pdf document to images and saves images to a single TIFF file.
SaveAsTIFF(System::SharedPtr<System::IO::Stream>, System::SharedPtr<PageSize>)Converts each pages of a pdf document to images with page size and saves images to a single TIFF stream.
SaveAsTIFF(System::SharedPtr<System::IO::Stream>, System::SharedPtr<PageSize>, System::SharedPtr<Aspose::Pdf::Devices::TiffSettings>)Converts each pages of a pdf document to images with page size and saves images to a single TIFF stream.
SaveAsTIFF(System::SharedPtr<System::IO::Stream>, int32_t, int32_t)Converts each pages of a pdf document to images with dimensions, and saves images to a single TIFF stream.
SaveAsTIFF(System::SharedPtr<System::IO::Stream>, int32_t, int32_t, Aspose::Pdf::Devices::CompressionType)Converts each pages of a pdf document to images with dimensions, and saves images to a single TIFF stream.
SaveAsTIFF(System::SharedPtr<System::IO::Stream>, int32_t, int32_t, System::SharedPtr<Aspose::Pdf::Devices::TiffSettings>)Converts each pages of a pdf document to images with dimensions, and saves images to a single TIFF stream.
SaveAsTIFF(System::SharedPtr<System::IO::Stream>, int32_t, int32_t, System::SharedPtr<Aspose::Pdf::Devices::TiffSettings>, System::SharedPtr<IIndexBitmapConverter>)Converts each pages of a pdf document to images with dimensions, and saves images to a single TIFF stream.
SaveAsTIFF(System::String, System::SharedPtr<Aspose::Pdf::Devices::TiffSettings>)Converts each pages of a pdf document to images with and saves images to a single TIFF file.
SaveAsTIFF(System::String, System::SharedPtr<Aspose::Pdf::Devices::TiffSettings>, System::SharedPtr<IIndexBitmapConverter>)Converts each pages of a pdf document to images with and saves images to a single TIFF file.
SaveAsTIFF(System::SharedPtr<System::IO::Stream>, System::SharedPtr<Aspose::Pdf::Devices::TiffSettings>)Converts each pages of a pdf document to images and saves images to a single TIFF stream.
SaveAsTIFF(System::SharedPtr<System::IO::Stream>, System::SharedPtr<Aspose::Pdf::Devices::TiffSettings>, System::SharedPtr<IIndexBitmapConverter>)Converts each pages of a pdf document to images and saves images to a single TIFF stream.
SaveAsTIFFClassF(System::String, int32_t, int32_t)Converts each pages of a pdf document to images and save images to a single TIFF ClassF file.
SaveAsTIFFClassF(System::String, System::SharedPtr<PageSize>)Converts each pages of a pdf document to images and save images to a single TIFF ClassF file.
SaveAsTIFFClassF(System::SharedPtr<System::IO::Stream>, int32_t, int32_t)Converts each pages of a pdf document to images and save images to a single TIFF ClassF stream.
SaveAsTIFFClassF(System::SharedPtr<System::IO::Stream>, System::SharedPtr<PageSize>)Converts each pages of a pdf document to images and save images to a single TIFF ClassF stream.
SaveAsTIFFClassF(System::String)Converts each pages of a pdf document to images and save images to a single TIFF ClassF file.
SaveAsTIFFClassF(System::SharedPtr<System::IO::Stream>)Converts each pages of a pdf document to images and save images to a single TIFF ClassF stream.
set_CoordinateType(PageCoordinateType)Sets the page coordinate type (Media/Crop boxes). CropBox value is used by default.
set_EndPage(int32_t)Sets end position which you want to convert.
set_FormPresentationMode(Aspose::Pdf::Devices::FormPresentationMode)Sets form presentation mode.
set_Password(System::String)Sets document OwnerPassword.
set_RenderingOptions(System::SharedPtr<Aspose::Pdf::RenderingOptions>)Sets rendering options.
set_Resolution(System::SharedPtr<Aspose::Pdf::Devices::Resolution>)Sets resolution during convertting. The higher resolution, the slower convertting speed. The default value is 150.
set_ShowHiddenAreas(bool)Sets flag that controls visibility of hidden areas on the page.
set_StartPage(int32_t)Sets start position which you want to convert. The minimal value is 1.
set_UserPassword(System::String)Sets document UserPassword.

See Also