Platforms to show: All Mac Windows Linux Cross-Platform
DynaPDFRasterImageMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | DynaPDF | MBS DynaPDF Plugin | 11.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
This class is named RasterImage due to the name in the underlying DynaPDF library. A better name would be RasterizerOptions as it includes options for the rasterizer engine.
- event UpdateWindow(r as DynaPDFRectMBS, pic as Variant) as Integer
- 26 properties
- property ClipRect as DynaPDFRectMBS
- property DefScale as Integer
- property DrawFrameRect as Boolean
- property Flags as Integer
- property FrameColor as Integer
- property InitWhite as Boolean
- property Matrix as DynaPDFMatrixMBS
- property NumAnnots as Integer
- property NumBezierCurves as Integer
- property NumClipPaths as Integer
- property NumFormFields as Integer
- property NumGlyphs as Integer
- property NumImages as Integer
- property NumLineTo as Integer
- property NumPaths as Integer
- property NumPatterns as Integer
- property NumRectangles as Integer
- property NumRestoreGState as Integer
- property NumSaveGState as Integer
- property NumShadings as Integer
- property NumSoftMasks as Integer
- property NumTextRecords as Integer
- property PageSpace as DynaPDFMatrixMBS
- property UpdateOnImageCoverage as Single
- property UpdateOnPathCount as Integer
- property Yield as Boolean
- 34 constants
Picture Scaling Constants
Constant | Value | Description |
---|---|---|
kpsFitBest | 2 |
Scale the page so that it fits fully into the image buffer. |
kpsFitHeight | 1 |
Scale the page to the height of the image buffer. |
kpsFitWidth | 0 |
Scale the page to the width of the image buffer. |
Raster Flag Constants
Constant | Value | Description |
---|---|---|
krfClipToArtBox | 4 |
Clip the page to the art box if any. Only one of these clip flags must be set at time! |
krfClipToBleedBox | 8 |
Clip the page to the bleed box if any. Only one of these clip flags must be set at time! |
krfClipToTrimBox | 16 |
Clip the page to the bleed box if any. Only one of these clip flags must be set at time! |
krfCompositeWhite | &h00001000 |
Composite pixel formats with an alpha channel finally with a white background. The alpha channel is 255 everywhere after composition. This flag is mainly provided for debug purposes but it can also be useful if the image must be copied on screen with a function that doesn't support alpha blending. |
krfDefault | 0 |
Render the page as usual |
krfDisableAAClipping | &h00200000 |
Disable Anti-Aliasing for clipping paths. This flag is the most important one since clipping paths cause often visible artefacts in PDF files with flattened transparency. |
krfDisableAAText | &h00400000 |
Disable Anti-Aliasing for text. |
krfDisableAAVector | &h00800000 |
Disable Anti-Aliasing for vector graphics. |
krfDisableAntiAliasing | &h00E00000 |
Fully disable Anti-Aliasing. |
krfDisableBiLinearFilter | &h01000000 |
Disable the BiLevel filter for images. Sometetimes useful if sharp images are needed, e.g. for barcodes. |
krfEnableBlendCS | &h10000000 |
If set, the page is rendered in the color space of the page group, soft proof color space, or output intent (if set), and finally converted to the destination colorspace. |
krfExclAnnotations | 32 |
Don't render annotations. |
krfExclButtons | &h00004000 |
If you want to render specific field types with RenderAnnotOrField() then use this flag to exclude buttons. If all fields should be skipped then set the flag rfExclFormFields instead. |
krfExclCheckBoxes | &h00008000 | Exclude check boxes. more |
krfExclComboBoxes | &h00010000 | Exclude combo boxes. more |
krfExclFormFields | 64 |
Don't render form fields. |
krfExclListBoxes | &h00020000 | Exclude listbox fields. more |
krfExclPageContent | &h00002000 |
If set, only annotations and form fields will be rendered (if any). |
krfExclSigFields | &h00080000 | Exclude signature fields. more |
krfExclTextFields | &h00040000 | Exclude text fields. more |
krfForceInterpolation | &h40000000 |
If set, image interpolation will be applied. |
krfIgnoreCropBox | 2 |
Ignore the crop box and render anything inside the media box without clipping. |
krfInitBlack | &h00000800 |
Initialize the image buffer to black before rendering (RGBA or GrayA must be initialized to black) |
krfRenderInvisibleText | &h02000000 |
If set, treat text rendering mode Invisible as Normal. |
krfRenderPrintState | &h20000000 |
If set, the print state of layers, annotations, and form fields will be rendered. |
krfRotate180 | &h00000200 |
Rotate the page 180 degress. |
krfRotate270 | &h00000400 |
Rotate the page 270 degress. |
krfRotate90 | &h00000100 |
Rotate the page 90 degress. Example |
krfScaleToBBox | &h00100000 |
Considered only, if the flag rfClipToArtBox, rfClipToBleedBox, or rfClipToTrimBox is set. If set, the picture size is set to the size of the whished bounding box. |
krfScaleToMediaBox | 1 |
Render the real paper format. Contents outside the crop box is clipped. |
krfSkipUpdateBG | &h00000080 |
Don't generate an update event after initializing the background to white. |
This class has no sub classes.
Some methods using this class:
- DynaPDFRasterizerMBS.RenderPage(page as DynaPDFPageMBS, options as DynaPDFRasterImageMBS) as boolean
- DynaPDFRasterizerMBS.RenderPageEx(DeviceContextHandle as Integer, byref DestX as Integer, byref DestY as Integer, page as DynaPDFPageMBS, options as DynaPDFRasterImageMBS) as boolean
- DynaPDFRasterizerMBS.RenderPageMT(page as DynaPDFPageMBS, options as DynaPDFRasterImageMBS) as boolean
Some examples using this class:
- /DynaPDF/Raster/DynaPDF Display PDF
- /DynaPDF/Raster/DynaPDF Display PDF with Links
- /DynaPDF/Raster/DynaPDF Raster to MemoryBlock
- /DynaPDF/Raster/PDF Benchmark
- /DynaPDF/Raster/Render Tests/Render Test 4
- /DynaPDF/Raster/RenderPageToImage variants
- /DynaPDF/Raster/RenderPageToImage with color management
- /DynaPDF/Raster/RenderPDFFile Test with Color Management
- /DynaPDF/Raster/updatewindow event/Display PDF
- /DynaPDF/Web Edition/WebPDF Web
Blog Entries
- MBS Xojo Plugins, version 23.4pr3
- MBS Xojo Plugins, version 23.1pr1
- RenderPageToImage
- MBS Real Studio Plugins, version 11.3pr9
- MBS Real Studio Plugins, version 11.2pr5
Release notes
- Version 23.4
- Added krfForceInterpolation constant for DynaPDFRasterImageMBS class.
- Version 23.1
- Added krfRenderPrintState constant to DynaPDFRasterImageMBS and DynaPDFMBS classes.
The items on this page are in the following plugins: MBS DynaPDF Plugin.
DynaPDFPrintSettingsMBS - DynaPDFRasterizerMBS