Class representing page of PDF document. More...
Inherits System::IDisposable, and Aspose::Pdf::ISupportsMemoryCleanup.
Public Types | |
using | BeforePageGenerate = System::MulticastDelegate< void(System::SharedPtr< Page >)> |
Procedure for customize header and footer. More... | |
![]() | |
typedef SmartPtr< Object > | ptr |
Alias for smart pointer type. More... | |
typedef System::Details::SharedMembersType | shared_members_type |
structure to keep list of shared pointers contained in object. More... | |
Public Member Functions | |
System::SharedPtr< Image > | get_BackgroundImage () const |
Gets background image for page (for generator only). More... | |
void | set_BackgroundImage (System::SharedPtr< Image > value) |
Sets background image for page (for generator only). More... | |
System::SharedPtr< Aspose::Pdf::TocInfo > | get_TocInfo () const |
Gets table of contents info. More... | |
void | set_TocInfo (System::SharedPtr< Aspose::Pdf::TocInfo > value) |
Sets table of contents info. More... | |
System::SharedPtr< HeaderFooter > | get_Header () const |
Gets page header. More... | |
void | set_Header (System::SharedPtr< HeaderFooter > value) |
Sets page header. More... | |
System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< Layer > > > | get_Layers () const |
Gets layers collection. More... | |
void | set_Layers (System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< Layer >>> value) |
Sets layers collection. More... | |
System::SharedPtr< HeaderFooter > | get_Footer () const |
Gets page footer. More... | |
void | set_Footer (System::SharedPtr< HeaderFooter > value) |
Sets page footer. More... | |
System::SharedPtr< Aspose::Pdf::Paragraphs > | get_Paragraphs () |
Gets the paragraphs. More... | |
void | set_Paragraphs (System::SharedPtr< Aspose::Pdf::Paragraphs > value) |
Gets the paragraphs. More... | |
System::SharedPtr< Aspose::Pdf::PageInfo > | get_PageInfo () |
Gets the page info.(for generator only) More... | |
void | set_PageInfo (System::SharedPtr< Aspose::Pdf::PageInfo > value) |
Sets the page info.(for generator only) More... | |
System::SharedPtr< Aspose::Pdf::Rectangle > | get_Rect () |
Gets rectangle of the page. Page crop box is returned if specified, otherwise page media box is returned. Please note that this property don't consider page rotation. To get page rectangle considering rotation please use ActualRect. More... | |
void | set_Rect (System::SharedPtr< Aspose::Pdf::Rectangle > value) |
Sets rectangle of the page. Page crop box is returned if specified, otherwise page media box is returned. Please note that this property don't consider page rotation. To get page rectangle considering rotation please use ActualRect. More... | |
Aspose::Pdf::ColorType | get_ColorType () |
Sets color type of the pages based on information getting from operators SetColor, images and forms. More... | |
System::SharedPtr< GraphInfo > | get_NoteLineStyle () const |
Gets the line style for notes.(for generator only) More... | |
void | set_NoteLineStyle (System::SharedPtr< GraphInfo > value) |
Sets the line style for notes.(for generator only) More... | |
Aspose::Pdf::TabOrder | get_TabOrder () |
Gets tab order of the page. Possible values: Row, Column. Default, Manual More... | |
void | set_TabOrder (Aspose::Pdf::TabOrder value) |
Sets tab order of the page. Possible values: Row, Column. Default, Manual More... | |
double | get_Duration () |
Gets of set page display duration. This is time in seconds that page shall be displayed during presentation. Returs -1 if duration is not defined. More... | |
void | set_Duration (double value) |
Gets of set page display duration. This is time in seconds that page shall be displayed during presentation. Returs -1 if duration is not defined. More... | |
System::SharedPtr< OperatorCollection > | get_Contents () |
Gets collection of operators in the content stream of the page. OperatorCollection More... | |
System::SharedPtr< Aspose::Pdf::Group > | get_Group () |
Gets a group attributes class specifying the attributes of the page�s page group for use in the transparent imaging model. More... | |
void | set_Group (System::SharedPtr< Aspose::Pdf::Group > value) |
Sets a group attributes class specifying the attributes of the page�s page group for use in the transparent imaging model. More... | |
System::SharedPtr< Annotations::AnnotationCollection > | get_Annotations () |
Gets collection of page annotations. Annotations More... | |
System::SharedPtr< Aspose::Pdf::Resources > | get_Resources () |
Gets page resources. Resources object contains collections of images, forms and fonts. Resources More... | |
Rotation | get_Rotate () |
Gets rotation of the page. More... | |
void | set_Rotate (Rotation value) |
Sets rotation of the page. More... | |
System::SharedPtr< Aspose::Pdf::Rectangle > | get_TrimBox () |
Gets trim box of the page. More... | |
void | set_TrimBox (System::SharedPtr< Aspose::Pdf::Rectangle > value) |
Sets trim box of the page. More... | |
System::SharedPtr< Aspose::Pdf::Rectangle > | get_ArtBox () |
Gets art box of the page. More... | |
void | set_ArtBox (System::SharedPtr< Aspose::Pdf::Rectangle > value) |
Sets art box of the page. More... | |
System::SharedPtr< Aspose::Pdf::Rectangle > | get_BleedBox () |
Gets bleed box of the page. More... | |
void | set_BleedBox (System::SharedPtr< Aspose::Pdf::Rectangle > value) |
Sets bleed box of the page. More... | |
System::SharedPtr< Aspose::Pdf::Rectangle > | get_CropBox () |
Gets crop box of the page. More... | |
void | set_CropBox (System::SharedPtr< Aspose::Pdf::Rectangle > value) |
Sets crop box of the page. More... | |
System::SharedPtr< Aspose::Pdf::Rectangle > | get_MediaBox () |
Gets media box of the page. More... | |
void | set_MediaBox (System::SharedPtr< Aspose::Pdf::Rectangle > value) |
Sets media box of the page. More... | |
int32_t | get_Number () |
Get number of the page. More... | |
System::SharedPtr< Matrix > | get_RotationMatrix () |
Gets transofmation matrix for the page. More... | |
System::SharedPtr< Color > | get_Background () |
Gets the background color of the page. More... | |
void | set_Background (System::SharedPtr< Color > value) |
Sets the background color of the page. More... | |
System::SharedPtr< Aspose::Pdf::Watermark > | get_Watermark () |
Gets the watermark of the page. More... | |
void | set_Watermark (System::SharedPtr< Aspose::Pdf::Watermark > value) |
Sets the watermark of the page. More... | |
System::SharedPtr< ArtifactCollection > | get_Artifacts () |
Gets collection of artifacts on the page. More... | |
System::SharedPtr< PageActionCollection > | get_Actions () |
Gets collection of page properties. More... | |
System::SharedPtr< System::Collections::Generic::IList< System::SharedPtr< Forms::Field > > > | get_FieldsInTabOrder () |
Gets list of Field object in Tab order on this page. More... | |
System::SharedPtr< System::IO::MemoryStream > | ConvertToPNGMemoryStream () |
bool | IsBlank (double fillThresholdFactor) |
Gets the flag whether page is blank or not. More... | |
System::SharedPtr< Aspose::Pdf::Rectangle > | GetPageRect (bool considerRotation) |
Returns rectangle of the page. More... | |
System::SharedPtr< Aspose::Pdf::Rectangle > | CalculateContentBBox () |
Calculates bbox value - rectangle containing contents without visible margins. More... | |
void | SendTo (System::SharedPtr< Devices::PageDevice > device, System::SharedPtr< System::IO::Stream > output) |
Sends page to process with given page device. More... | |
void | Accept (System::SharedPtr< Annotations::AnnotationSelector > visitor) |
Accepts AnnotationSelector visitor object that provides functionality to work with annotations. More... | |
void | AddStamp (System::SharedPtr< Stamp > stamp) |
Put stamp into page. Stamp can be page number, image or simple text, e.g. some logo. More... | |
void | AddImage (System::SharedPtr< System::IO::Stream > imageStream, System::SharedPtr< Aspose::Pdf::Rectangle > imageRect) |
Adds image onto the page and locates it in the middle of specified rectangle saving image's proportion. More... | |
void | AddImage (System::String hocr, System::SharedPtr< System::IO::Stream > imageStream, System::SharedPtr< Aspose::Pdf::Rectangle > imageRect) |
Adds searchable image onto the page and locates it in the middle of specified rectangle saving image's proportion. More... | |
void | AddImage (System::SharedPtr< System::IO::Stream > imageStream, System::SharedPtr< Aspose::Pdf::Rectangle > imageRect, int32_t imageWidth, int32_t imageHeight, bool saveImageProportions) |
Adds image on page and places it depend on image rectangle position. More... | |
void | AddImage (System::String imagePath, System::SharedPtr< Aspose::Pdf::Rectangle > rectangle) |
Adds image onto the page and locates it in the middle of specified rectangle saving image's proportion. More... | |
void | SendTo (System::SharedPtr< Devices::PageDevice > device, System::String outputFileName) |
Sends page to process with given page device. More... | |
void | Flatten () |
Removes all fields located on the page and place their values instead. More... | |
void | Accept (System::SharedPtr< Text::TextFragmentAbsorber > visitor) |
Accepts TextFragmentAbsorber visitor object that provides functionality to work with text objects. More... | |
void | Accept (System::SharedPtr< ImagePlacementAbsorber > visitor) |
Accepts ImagePlacementAbsorber visitor object that provides functionality to work with image placement objects. More... | |
void | Accept (System::SharedPtr< Text::TextAbsorber > visitor) |
Accepts TextAbsorber visitor object that provides functionality to work with text objects. More... | |
void | SetPageSize (double width, double height) |
Sets page size for page. More... | |
void | Dispose () |
Frees up memory More... | |
void | MakeGrayscale () |
Converts images on page as grayscaled. More... | |
void | FreeMemory () |
Clears cached data More... | |
System::String | GetNotifications () |
Returns notifications about inside operations with page content. (Only notifications about paragraph events in text adding scenarios are supported now.) More... | |
System::ArrayPtr< uint8_t > | AsByteArray (System::SharedPtr< Devices::Resolution > resolution) |
Converts current page as bitmap and than returns array of bytes. More... | |
System::String | AsXml () |
Converts current page as xml in utf8 encoding. More... | |
void | cpp_switch_document_to_shared () |
![]() | |
ASPOSECPP_SHARED_API | Object () |
Creates object. Initializes all internal data structures. More... | |
virtual ASPOSECPP_SHARED_API | ~Object () |
Destroys object. Frees all internal data structures. More... | |
ASPOSECPP_SHARED_API | Object (Object const &x) |
Copy constructor. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More... | |
Object & | operator= (Object const &x) |
Assignment operator. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More... | |
Object * | SharedRefAdded () |
Increments shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More... | |
int | SharedRefRemovedSafe () |
Decrements and returns shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More... | |
int | RemovedSharedRefs (int count) |
Decreases shared reference count by specified value. More... | |
Detail::SmartPtrCounter * | WeakRefAdded () |
Increments weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More... | |
void | WeakRefRemoved () |
Decrements weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More... | |
Detail::SmartPtrCounter * | GetCounter () |
Gets reference counter data structure associated with the object. More... | |
int | SharedCount () const |
Gets current value of shared refernce counter. More... | |
ASPOSECPP_SHARED_API void | Lock () |
Implements C# lock() statement locking. Call directly or use LockContext sentry object. More... | |
ASPOSECPP_SHARED_API void | Unlock () |
Implements C# lock() statement unlocking. Call directly or use LockContext sentry object. More... | |
virtual ASPOSECPP_SHARED_API bool | Equals (ptr obj) |
Compares objects using C# Object.Equals semantics. More... | |
virtual ASPOSECPP_SHARED_API int | GetHashCode () const |
Analog of C# Object.GetHashCode() method. Enables hashing of custom objects. More... | |
virtual ASPOSECPP_SHARED_API String | ToString () const |
Analog of C# Object.ToString() method. Enables converting custom objects to string. More... | |
virtual ASPOSECPP_SHARED_API ptr | MemberwiseClone () const |
Analog of C# Object.MemberwiseClone() method. Enables cloning custom types. More... | |
virtual ASPOSECPP_SHARED_API const TypeInfo & | GetType () const |
Gets actual type of object. Analog of C# System.Object.GetType() call. More... | |
virtual ASPOSECPP_SHARED_API bool | Is (const TypeInfo &targetType) const |
Check if object represents an instance of type described by targetType. Analog of C# 'is' operator. More... | |
virtual ASPOSECPP_SHARED_API void | SetTemplateWeakPtr (unsigned int argument) |
Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. More... | |
template<> | |
bool | Equals (float const &objA, float const &objB) |
template<> | |
bool | Equals (double const &objA, double const &objB) |
template<> | |
bool | ReferenceEquals (String const &str, std::nullptr_t) |
template<> | |
bool | ReferenceEquals (String const &str1, String const &str2) |
Static Public Member Functions | |
static int32_t | RotationToInt (Rotation rotation) |
Translates rotation enumeration member into integer value. More... | |
static Rotation | IntToRotation (int32_t rotation) |
Translates integer value into corresponding rotation enumeration member. More... | |
![]() | |
static bool | ReferenceEquals (ptr const &objA, ptr const &objB) |
Compares objects by reference. More... | |
template<typename T > | |
static std::enable_if<!IsSmartPtr< T >::value, bool >::type | ReferenceEquals (T const &objA, T const &objB) |
Compares objects by reference. More... | |
template<typename T > | |
static std::enable_if<!IsSmartPtr< T >::value, bool >::type | ReferenceEquals (T const &objA, std::nullptr_t) |
Reference-compares value type object with nullptr. More... | |
template<typename T1 , typename T2 > | |
static std::enable_if< IsSmartPtr< T1 >::value &&IsSmartPtr< T2 >::value, bool >::type | Equals (T1 const &objA, T2 const &objB) |
Compares reference type objects in C# style. More... | |
template<typename T1 , typename T2 > | |
static std::enable_if<!IsSmartPtr< T1 >::value &&!IsSmartPtr< T2 >::value, bool >::type | Equals (T1 const &objA, T2 const &objB) |
Compares value type objects in C# style. More... | |
static const TypeInfo & | Type () |
Impleemnts C# typeof(System.Object) construct. More... | |
Public Attributes | |
System::Event< void(System::SharedPtr< Page >)> | OnBeforePageGenerate |
Event for customize header and footer. More... | |
Protected Member Functions | |
bool | get_IsRowExceedPageMode () const |
void | set_IsRowExceedPageMode (bool value) |
double | get_IsRowExceedPageHeigth () const |
void | set_IsRowExceedPageHeigth (double value) |
double | get_CurY () const |
Gets page current Y coordinate. More... | |
void | set_CurY (double value) |
Sets page current Y coordinate. More... | |
bool | get_IgnoreAnnotationExceptions () const |
Determines should be exceptions ignored during processing of annotations. More... | |
void | set_IgnoreAnnotationExceptions (bool value) |
Determines should be exceptions ignored during processing of annotations. More... | |
bool | get_IsPageInfoSet () const |
Gets page header. More... | |
void | set_IsPageInfoSet (bool value) |
Sets page header. More... | |
System::SharedPtr< PageCollection > | get_Pages () const |
Gets the pages collection. More... | |
void | set_Pages (System::SharedPtr< PageCollection > value) |
Gets the pages collection. More... | |
System::String | get_Id () const |
Gets the page id More... | |
void | set_Id (System::String value) |
Sets the page id More... | |
System::SharedPtr< Aspose::Pdf::Rectangle > | get_Rectangle () |
bool | get_IsNoteMoreThanPage () const |
void | set_IsNoteMoreThanPage (bool value) |
int32_t | get___BadNumber () |
System::SharedPtr< Aspose::Pdf::ContentsAppender > | get_ContentsAppender () |
Gets current contents appender. ContentsAppender More... | |
void | _SetPageNumber (int32_t number) |
void | ProcessHeaderFooters () |
Process header and footer. More... | |
void | SetPageInfo () |
void | ProcessParagraphs () |
Process generator paragraphs. More... | |
System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< Operator > > > | Accept (System::SharedPtr< Aspose::Rendering::ApsNode > node, System::Drawing::RectangleF rectangle, bool rotateGlyphs) |
Accepts ApsNode aps root node (page, canvas, path, etc) object that needed to add onto the page, the clipping feature is skipped. The content is added onto the page. More... | |
System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< Operator > > > | Accept (System::SharedPtr< Aspose::Rendering::ApsNode > node, System::Drawing::RectangleF rectangle, bool rotateGlyphs, bool useClipping) |
Accepts ApsNode aps root node (page, canvas, path, etc) object that needed to add onto the page with clipping feature. The content is added onto the page. More... | |
System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< Operator > > > | Accept (System::SharedPtr< Aspose::Rendering::ApsNode > node, System::Drawing::RectangleF rectangle, bool rotateGlyphs, bool useClipping, bool addContent) |
Accepts ApsNode aps root node (page, canvas, path, etc) object that needed to add onto the page. More... | |
System::SharedPtr< Aspose::Pdf::Rectangle > | GetRect () |
Returns rectanlge of the page according to its CropBox and Meia box; More... | |
void | InvalidateAnnotations () |
Page (System::SharedPtr< Engine::CommonData::IPage > page) | |
System::SharedPtr< System::Collections::Generic::Dictionary< double, int32_t > > | GetTextRotationStatistic () |
Returns dictionary that contains frequencies for every unique rotation angle of text found. More... | |
void | UpdateContents () |
void | UpdateResources () |
Updates the resources. More... | |
System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< Operator > > > | AddImage (System::SharedPtr< System::IO::Stream > stream, System::SharedPtr< Aspose::Pdf::Rectangle > rectangle, System::SharedPtr< CompositingParameters > compositingParameters) |
Adds image onto the page and locates it in the middle of specified rectangle saving image's proportion. More... | |
System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< Operator > > > | AddImage (System::SharedPtr< System::IO::Stream > stream, System::SharedPtr< Aspose::Pdf::Rectangle > rectangle, System::SharedPtr< Matrix > rotationMatrix, System::SharedPtr< CompositingParameters > compositingParameters, System::SharedPtr< Engine::Data::IPdfObject > &pdfObject, bool isTagged=false, int32_t MCID=0) |
Adds image onto the page and locates it in the middle of specified rectangle saving image's proportion. More... | |
System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< Operator > > > | AddImage (System::SharedPtr< System::IO::Stream > stream, System::SharedPtr< Aspose::Pdf::Rectangle > rectangle, System::SharedPtr< CompositingParameters > compositingParameters, bool addImage, bool isBlackWhite, System::SharedPtr< System::IO::Stream > predefinedStream=nullptr, bool isTagged=false, int32_t MCID=0) |
Adds image onto the page. More... | |
System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< Operator > > > | AddImage (System::SharedPtr< System::IO::Stream > stream, System::SharedPtr< Aspose::Pdf::Rectangle > rectangle, System::SharedPtr< Matrix > rotationMatrix, System::SharedPtr< CompositingParameters > compositingParameters, bool addImage, bool isBlackWhite, System::SharedPtr< Engine::Data::IPdfObject > &pdfObject, System::SharedPtr< System::IO::Stream > predefinedStream=nullptr, bool isTagged=false, int32_t MCID=0) |
Adds image onto the page. More... | |
void | Flatten4 (bool doRemoveFiedls) |
void | SetTransition (System::SharedPtr< Engine::Data::IPdfDictionary > transition) |
void | RemoveObjectReferences (System::String name) |
Remove references to XObject from page contents (i.e. all Do operators which use name of object). More... | |
bool | IsUsedOnPage (System::String name) |
System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< System::Object > > > | FindReferences (System::String name) |
void | FillUsedObjectsTable (System::SharedPtr< System::Collections::Generic::Dictionary< int32_t, int32_t >> usageTable, System::SharedPtr< Engine::Data::IPdfDictionary > CommonResources) |
void | DeleteUnusedResources (System::SharedPtr< Engine::Data::IPdfDictionary > resources, System::SharedPtr< System::Collections::Generic::Dictionary< int32_t, int32_t >> usageTable) |
void | DeleteUnusedResources (System::SharedPtr< System::Collections::Generic::Dictionary< int32_t, int32_t >> usageTable) |
void | ClearContents () |
void | RegisterObservation (System::String message) |
void | Serialize (System::SharedPtr< System::Xml::XmlTextWriter > writer) |
void | Deserialize (System::SharedPtr< System::Xml::XmlReader > reader) |
void | ReleaseResources () |
virtual | ~Page () |
Static Protected Member Functions | |
static System::SharedPtr< Page > | GetNextPage (System::SharedPtr< Page > page) |
Get next page and apply defaults. More... | |
static void | PrintBackgroundImage (System::SharedPtr< Image > image, double width, double height, double curX, double curY, System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< Operator >>> operators, System::SharedPtr< Page > page) |
static System::SharedPtr< Page > | ProcessPage (System::SharedPtr< Page > page) |
static void | RemoveObjectReferences (System::SharedPtr< OperatorCollection > contents, System::String name) |
static System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< System::Object > > > | FindReferences (System::SharedPtr< OperatorCollection > Contents, System::String name) |
Returns list of operators which uses resource with specified name. More... | |
Protected Attributes | |
bool | detached |
System::WeakPtr< Document > | _document |
System::SharedPtr< Engine::CommonData::IPage > | EnginePage |
Class representing page of PDF document.
using Aspose::Pdf::Page::BeforePageGenerate = System::MulticastDelegate<void(System::SharedPtr<Page>)> |
Procedure for customize header and footer.
///
page | The current page. |
|
protected |
|
protectedvirtual |
|
protected |
void Aspose::Pdf::Page::Accept | ( | System::SharedPtr< Annotations::AnnotationSelector > | visitor | ) |
Accepts AnnotationSelector visitor object that provides functionality to work with annotations.
visitor | Annotation selector sobject. |
void Aspose::Pdf::Page::Accept | ( | System::SharedPtr< Text::TextFragmentAbsorber > | visitor | ) |
Accepts TextFragmentAbsorber visitor object that provides functionality to work with text objects.
visitor | Text absorber object. |
void Aspose::Pdf::Page::Accept | ( | System::SharedPtr< ImagePlacementAbsorber > | visitor | ) |
Accepts ImagePlacementAbsorber visitor object that provides functionality to work with image placement objects.
visitor | Image placement absorber object. |
void Aspose::Pdf::Page::Accept | ( | System::SharedPtr< Text::TextAbsorber > | visitor | ) |
Accepts TextAbsorber visitor object that provides functionality to work with text objects.
visitor | Text absorber object. |
|
protected |
Accepts ApsNode aps root node (page, canvas, path, etc) object that needed to add onto the page, the clipping feature is skipped. The content is added onto the page.
node | The aps root node object. |
rectangle | The size of area to add apps node object. |
rotateGlyphs | The flag determines whether text glyphs are rotated or not. |
|
protected |
Accepts ApsNode aps root node (page, canvas, path, etc) object that needed to add onto the page with clipping feature. The content is added onto the page.
node | The aps root node object. |
rectangle | The size of area to add apps node object. |
rotateGlyphs | The flag determines whether text glyphs are rotated or not. |
useClipping | The flag determines whether aps fragment is being clipped or not. |
|
protected |
Accepts ApsNode aps root node (page, canvas, path, etc) object that needed to add onto the page.
node | The aps root node object. |
rectangle | The size of area to add apps node object. |
rotateGlyphs | The flag determines whether text glyphs are rotated or not. |
useClipping | The flag determines whether aps fragment is being clipped or not. |
addContent | The flag determines whether aps fragment is being drawed or not. |
void Aspose::Pdf::Page::AddImage | ( | System::SharedPtr< System::IO::Stream > | imageStream, |
System::SharedPtr< Aspose::Pdf::Rectangle > | imageRect | ||
) |
Adds image onto the page and locates it in the middle of specified rectangle saving image's proportion.
imageStream | The stream of the image. |
imageRect | The position of the image. |
void Aspose::Pdf::Page::AddImage | ( | System::String | hocr, |
System::SharedPtr< System::IO::Stream > | imageStream, | ||
System::SharedPtr< Aspose::Pdf::Rectangle > | imageRect | ||
) |
Adds searchable image onto the page and locates it in the middle of specified rectangle saving image's proportion.
hocr | The hocr of the image. |
imageStream | The stream of the image. |
imageRect | The position of the image. |
void Aspose::Pdf::Page::AddImage | ( | System::SharedPtr< System::IO::Stream > | imageStream, |
System::SharedPtr< Aspose::Pdf::Rectangle > | imageRect, | ||
int32_t | imageWidth, | ||
int32_t | imageHeight, | ||
bool | saveImageProportions | ||
) |
Adds image on page and places it depend on image rectangle position.
imageStream | The stream of the image. |
imageRect | The default position of the image on page. |
imageWidth | The width of the image. |
imageHeight | The height of the image. |
saveImageProportions | If the flag set to true than image placed in rectangle position; otherwise, the size of rectange is becoming equal to image size. |
void Aspose::Pdf::Page::AddImage | ( | System::String | imagePath, |
System::SharedPtr< Aspose::Pdf::Rectangle > | rectangle | ||
) |
Adds image onto the page and locates it in the middle of specified rectangle saving image's proportion.
imagePath | The path to image. |
rectangle | The position of the image. |
|
protected |
Adds image onto the page and locates it in the middle of specified rectangle saving image's proportion.
stream | The stream of the image. |
rectangle | The position of the image. |
compositingParameters | The compositing parameters. |
|
protected |
Adds image onto the page and locates it in the middle of specified rectangle saving image's proportion.
stream | The stream of the image. |
rectangle | The position of the image. |
rotationMatrix | The rotation matrix. |
compositingParameters | The compositing parameters. |
pdfObject | Returns the created image pdf object. |
|
protected |
Adds image onto the page.
stream | The stream of the image. |
rectangle | The position of the image. If the rectangle is the point image will be added in original size. |
compositingParameters | The compositing parameters. |
addImage | If true image will be added otherwise not. |
isBlackWhite | If true the image is black and white otherwise not. |
|
protected |
Adds image onto the page.
stream | The stream of the image. |
rectangle | The position of the image. If the rectangle is the point image will be added in original size. |
rotationMatrix | The rotation matrix. |
compositingParameters | The compositing parameters. |
addImage | If true image will be added otherwise not. |
isBlackWhite | If true the image is black and white otherwise not. |
pdfObject | Returns the created image pdf object. |
void Aspose::Pdf::Page::AddStamp | ( | System::SharedPtr< Stamp > | stamp | ) |
System::ArrayPtr<uint8_t> Aspose::Pdf::Page::AsByteArray | ( | System::SharedPtr< Devices::Resolution > | resolution | ) |
Converts current page as bitmap and than returns array of bytes.
resolution | The resolution. |
System::String Aspose::Pdf::Page::AsXml | ( | ) |
Converts current page as xml in utf8 encoding.
System::SharedPtr<Aspose::Pdf::Rectangle> Aspose::Pdf::Page::CalculateContentBBox | ( | ) |
Calculates bbox value - rectangle containing contents without visible margins.
|
protected |
System::SharedPtr<System::IO::MemoryStream> Aspose::Pdf::Page::ConvertToPNGMemoryStream | ( | ) |
void Aspose::Pdf::Page::cpp_switch_document_to_shared | ( | ) |
|
protected |
|
protected |
|
protected |
|
virtual |
Frees up memory
Reimplemented from System::IDisposable.
|
protected |
|
protected |
|
staticprotected |
Returns list of operators which uses resource with specified name.
name |
void Aspose::Pdf::Page::Flatten | ( | ) |
Removes all fields located on the page and place their values instead.
|
protected |
|
virtual |
Clears cached data
Implements Aspose::Pdf::ISupportsMemoryCleanup.
|
protected |
System::SharedPtr<PageActionCollection> Aspose::Pdf::Page::get_Actions | ( | ) |
Gets collection of page properties.
System::SharedPtr<Annotations::AnnotationCollection> Aspose::Pdf::Page::get_Annotations | ( | ) |
Gets collection of page annotations. Annotations
System::SharedPtr<Aspose::Pdf::Rectangle> Aspose::Pdf::Page::get_ArtBox | ( | ) |
System::SharedPtr<ArtifactCollection> Aspose::Pdf::Page::get_Artifacts | ( | ) |
Gets collection of artifacts on the page.
System::SharedPtr<Color> Aspose::Pdf::Page::get_Background | ( | ) |
Gets the background color of the page.
System::SharedPtr<Image> Aspose::Pdf::Page::get_BackgroundImage | ( | ) | const |
Gets background image for page (for generator only).
System::SharedPtr<Aspose::Pdf::Rectangle> Aspose::Pdf::Page::get_BleedBox | ( | ) |
Aspose::Pdf::ColorType Aspose::Pdf::Page::get_ColorType | ( | ) |
Sets color type of the pages based on information getting from operators SetColor, images and forms.
System::SharedPtr<OperatorCollection> Aspose::Pdf::Page::get_Contents | ( | ) |
Gets collection of operators in the content stream of the page. OperatorCollection
Example is demonstrates how to scan operators stream of page.
|
protected |
Gets current contents appender. ContentsAppender
System::SharedPtr<Aspose::Pdf::Rectangle> Aspose::Pdf::Page::get_CropBox | ( | ) |
|
protected |
Gets page current Y coordinate.
double Aspose::Pdf::Page::get_Duration | ( | ) |
System::SharedPtr<System::Collections::Generic::IList<System::SharedPtr<Forms::Field> > > Aspose::Pdf::Page::get_FieldsInTabOrder | ( | ) |
Gets list of Field object in Tab order on this page.
System::SharedPtr<HeaderFooter> Aspose::Pdf::Page::get_Footer | ( | ) | const |
Gets page footer.
The page footer.
System::SharedPtr<Aspose::Pdf::Group> Aspose::Pdf::Page::get_Group | ( | ) |
Gets a group attributes class specifying the attributes of the page�s page group for use in the transparent imaging model.
System::SharedPtr<HeaderFooter> Aspose::Pdf::Page::get_Header | ( | ) | const |
Gets page header.
The page header.
|
protected |
Gets the page id
The page id.
|
protected |
Determines should be exceptions ignored during processing of annotations.
|
protected |
|
protected |
Gets page header.
The page header.
|
protected |
|
protected |
System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<Layer> > > Aspose::Pdf::Page::get_Layers | ( | ) | const |
Gets layers collection.
The layers collection.
System::SharedPtr<Aspose::Pdf::Rectangle> Aspose::Pdf::Page::get_MediaBox | ( | ) |
System::SharedPtr<GraphInfo> Aspose::Pdf::Page::get_NoteLineStyle | ( | ) | const |
Gets the line style for notes.(for generator only)
The note style.
int32_t Aspose::Pdf::Page::get_Number | ( | ) |
Get number of the page.
System::SharedPtr<Aspose::Pdf::PageInfo> Aspose::Pdf::Page::get_PageInfo | ( | ) |
Gets the page info.(for generator only)
The page info.
|
protected |
Gets the pages collection.
The pages collection.
System::SharedPtr<Aspose::Pdf::Paragraphs> Aspose::Pdf::Page::get_Paragraphs | ( | ) |
Gets the paragraphs.
The paragraphs.
System::SharedPtr<Aspose::Pdf::Rectangle> Aspose::Pdf::Page::get_Rect | ( | ) |
Gets rectangle of the page. Page crop box is returned if specified, otherwise page media box is returned. Please note that this property don't consider page rotation. To get page rectangle considering rotation please use ActualRect.
Example demonstrates how to get page rectangle:
|
protected |
System::SharedPtr<Aspose::Pdf::Resources> Aspose::Pdf::Page::get_Resources | ( | ) |
Rotation Aspose::Pdf::Page::get_Rotate | ( | ) |
System::SharedPtr<Matrix> Aspose::Pdf::Page::get_RotationMatrix | ( | ) |
Gets transofmation matrix for the page.
Aspose::Pdf::TabOrder Aspose::Pdf::Page::get_TabOrder | ( | ) |
Gets tab order of the page. Possible values: Row, Column. Default, Manual
System::SharedPtr<Aspose::Pdf::TocInfo> Aspose::Pdf::Page::get_TocInfo | ( | ) | const |
Gets table of contents info.
The table of contents info - default null. If it set this page will contain table of contents.
System::SharedPtr<Aspose::Pdf::Rectangle> Aspose::Pdf::Page::get_TrimBox | ( | ) |
System::SharedPtr<Aspose::Pdf::Watermark> Aspose::Pdf::Page::get_Watermark | ( | ) |
Gets the watermark of the page.
|
staticprotected |
Get next page and apply defaults.
System::String Aspose::Pdf::Page::GetNotifications | ( | ) |
Returns notifications about inside operations with page content. (Only notifications about paragraph events in text adding scenarios are supported now.)
System::SharedPtr<Aspose::Pdf::Rectangle> Aspose::Pdf::Page::GetPageRect | ( | bool | considerRotation | ) |
Returns rectangle of the page.
considerRotation | If true then rotation of the page will be considered in rect calculation. |
|
protected |
Returns rectanlge of the page according to its CropBox and Meia box;
|
protected |
Returns dictionary that contains frequencies for every unique rotation angle of text found.
|
static |
Translates integer value into corresponding rotation enumeration member.
rotation | Integer value to convert |
|
protected |
bool Aspose::Pdf::Page::IsBlank | ( | double | fillThresholdFactor | ) |
Gets the flag whether page is blank or not.
The fill threshold value that manages the sensitivity of detection. Should be equal or greater than 0.01.
|
protected |
void Aspose::Pdf::Page::MakeGrayscale | ( | ) |
Converts images on page as grayscaled.
|
staticprotected |
|
protected |
Process header and footer.
|
staticprotected |
|
protected |
Process generator paragraphs.
|
protected |
|
protected |
|
protected |
Remove references to XObject from page contents (i.e. all Do operators which use name of object).
name |
|
staticprotected |
|
static |
Translates rotation enumeration member into integer value.
rotation | Rotation enumeratioom member. |
void Aspose::Pdf::Page::SendTo | ( | System::SharedPtr< Devices::PageDevice > | device, |
System::SharedPtr< System::IO::Stream > | output | ||
) |
Sends page to process with given page device.
device | The device to process page. |
output | Result stream which is used with device to save its output. |
void Aspose::Pdf::Page::SendTo | ( | System::SharedPtr< Devices::PageDevice > | device, |
System::String | outputFileName | ||
) |
Sends page to process with given page device.
device | The device to process page. |
outputFileName | File which is used with device to save its output. |
|
protected |
void Aspose::Pdf::Page::set_ArtBox | ( | System::SharedPtr< Aspose::Pdf::Rectangle > | value | ) |
void Aspose::Pdf::Page::set_Background | ( | System::SharedPtr< Color > | value | ) |
Sets the background color of the page.
void Aspose::Pdf::Page::set_BackgroundImage | ( | System::SharedPtr< Image > | value | ) |
Sets background image for page (for generator only).
void Aspose::Pdf::Page::set_BleedBox | ( | System::SharedPtr< Aspose::Pdf::Rectangle > | value | ) |
void Aspose::Pdf::Page::set_CropBox | ( | System::SharedPtr< Aspose::Pdf::Rectangle > | value | ) |
|
protected |
Sets page current Y coordinate.
void Aspose::Pdf::Page::set_Duration | ( | double | value | ) |
void Aspose::Pdf::Page::set_Footer | ( | System::SharedPtr< HeaderFooter > | value | ) |
Sets page footer.
The page footer.
void Aspose::Pdf::Page::set_Group | ( | System::SharedPtr< Aspose::Pdf::Group > | value | ) |
Sets a group attributes class specifying the attributes of the page�s page group for use in the transparent imaging model.
void Aspose::Pdf::Page::set_Header | ( | System::SharedPtr< HeaderFooter > | value | ) |
Sets page header.
The page header.
|
protected |
Sets the page id
The page id.
|
protected |
Determines should be exceptions ignored during processing of annotations.
|
protected |
|
protected |
Sets page header.
The page header.
|
protected |
|
protected |
void Aspose::Pdf::Page::set_Layers | ( | System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< Layer >>> | value | ) |
Sets layers collection.
The layers collection.
void Aspose::Pdf::Page::set_MediaBox | ( | System::SharedPtr< Aspose::Pdf::Rectangle > | value | ) |
void Aspose::Pdf::Page::set_NoteLineStyle | ( | System::SharedPtr< GraphInfo > | value | ) |
Sets the line style for notes.(for generator only)
The note style.
void Aspose::Pdf::Page::set_PageInfo | ( | System::SharedPtr< Aspose::Pdf::PageInfo > | value | ) |
Sets the page info.(for generator only)
The page info.
|
protected |
Gets the pages collection.
The pages collection.
void Aspose::Pdf::Page::set_Paragraphs | ( | System::SharedPtr< Aspose::Pdf::Paragraphs > | value | ) |
Gets the paragraphs.
The paragraphs.
void Aspose::Pdf::Page::set_Rect | ( | System::SharedPtr< Aspose::Pdf::Rectangle > | value | ) |
Sets rectangle of the page. Page crop box is returned if specified, otherwise page media box is returned. Please note that this property don't consider page rotation. To get page rectangle considering rotation please use ActualRect.
Example demonstrates how to get page rectangle:
void Aspose::Pdf::Page::set_Rotate | ( | Rotation | value | ) |
void Aspose::Pdf::Page::set_TabOrder | ( | Aspose::Pdf::TabOrder | value | ) |
Sets tab order of the page. Possible values: Row, Column. Default, Manual
void Aspose::Pdf::Page::set_TocInfo | ( | System::SharedPtr< Aspose::Pdf::TocInfo > | value | ) |
Sets table of contents info.
The table of contents info - default null. If it set this page will contain table of contents.
void Aspose::Pdf::Page::set_TrimBox | ( | System::SharedPtr< Aspose::Pdf::Rectangle > | value | ) |
void Aspose::Pdf::Page::set_Watermark | ( | System::SharedPtr< Aspose::Pdf::Watermark > | value | ) |
Sets the watermark of the page.
|
protected |
void Aspose::Pdf::Page::SetPageSize | ( | double | width, |
double | height | ||
) |
|
protected |
transition |
|
protected |
|
protected |
Updates the resources.
|
protected |
|
protected |
|
protected |
System::Event<void(System::SharedPtr<Page>)> Aspose::Pdf::Page::OnBeforePageGenerate |
Event for customize header and footer.