Platforms to show: All Mac Windows Linux Cross-Platform
DynaPDFRenderImageParmsMBS class New in 26.5
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| class | DynaPDF | MBS DynaPDF Plugin | 26.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
- 11 properties
- property Bilinear1Bit as Integer
- property BilinearColor as Integer
- property BilinearGray as Integer
- property DefScale as Integer
- property Flags1 as Integer
- property Flags2 as Integer
- property JPEGQuality as Integer
- property MaxBandBytes as Integer
- property MinLineWidth as Single
- property Supersampling as Integer
- property ThreadCount as Integer
- method Constructor
- 45 constants
Bilinear Filter
| Constant | Value | Description |
|---|---|---|
| kbfmAuto | 0 |
Auto |
| kbfmForce | 2 |
Force |
| kbfmOff | 1 |
No bilinear filter |
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. |
| kpsFitZoom | 3 |
This mode must be used if the scaling factors of the transformation matrix are <> 1.0 |
Raster Flags
| Constant | Value | Description |
|---|---|---|
| krf2AcrobatTintPreview | 1 |
If set, empirical spot color preview; requires Overprint, default false. |
| krf2BuildHitData | 2 |
Used by the rendering control to enable text and object selection |
| krf2CreateSeparations | 4 |
Considered by RenderPageToImage V2 only. If set, separations are rendered. If OutFile is a directory, the function separate images for each color channel. The naming sheme is as follows: If the PDF file was opened from file, the image files get the names %filename%_cyan.png, %filename%_magenta.png, and so on. The extension depends on the image file format. If the PDF file was opened from a buffer, the very same sheme is used, with the exception that %filename% is absents since no file name is known. If OutFile is a file path, then a multi-page TIFF will be created. One page for every color channel. Since TIFF is the only multi-page image format that is currently supported, the parameter Format is ignored in this case. |
| krf2Default | 0 |
Default |
| krf2Overprint | 8 |
If set, overprinting will be simulated |
| krfClipBoxMask | 28 |
The mask for Clip flags. |
| 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 |
Combination of krfDisableAAVector, krfDisableAAText and krfDisableAAClipping. |
| 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 |
If you want to render specific field types with RenderAnnotOrField() then use this flag to exclude combobox. If all fields should be skipped then set the flag rfExclFormFields instead. |
| krfExclComboBoxes | &h00010000 |
If you want to render specific field types with RenderAnnotOrField() then use this flag to exclude combobox. If all fields should be skipped then set the flag rfExclFormFields instead. |
| krfExclFormFields | 64 |
Don't render form fields. |
| krfExclListBoxes | &h00020000 |
If you want to render specific field types with RenderAnnotOrField() then use this flag to exclude listbox. If all fields should be skipped then set the flag rfExclFormFields instead. |
| krfExclPageContent | &h00002000 |
If set, only annotations and form fields will be rendered (if any). |
| krfExclSigFields | &h00080000 |
If set, only annotations and form fields will be rendered (if any). |
| krfExclTextFields | &h00040000 |
If you want to render specific field types with RenderAnnotOrField() then use this flag to exclude text fields. If all fields should be skipped then set the flag rfExclFormFields instead. |
| 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) |
| krfPremulAlpha | &h80000000 |
If set, an image with pre-multiplied alpha values will be created. |
| 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 degrees. |
| krfRotate270 | &h00000400 |
Rotate the page 270 degrees. |
| krfRotate90 | &h00000100 |
Rotate the page 90 degrees. |
| krfScaleToBBox | &h00100000 |
Meaningful only, if 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 subclasses.
Blog Entries
Release notes
- Version 26.5
- Added DynaPDFRasterParmsMBS and DynaPDFRenderImageParmsMBS classes.
Some methods using this class:
- DynaPDFMBS.RenderPageToImage(PageNum as UInt32, OutFile as FolderItem, Resolution as UInt32, Width as Integer, Height as Integer, PixFmt as Integer, Filter as Integer, Format as Integer, RenderImageParms as DynaPDFRenderImageParmsMBS) as Boolean
- DynaPDFMBS.RenderPageToImage(PageNum as UInt32, OutFilePath as String, Resolution as UInt32, Width as Integer, Height as Integer, PixFmt as Integer, Filter as Integer, Format as Integer, RenderImageParms as DynaPDFRenderImageParmsMBS) as Boolean
Some examples using this class:
Some related classes:
The items on this page are in the following plugins: MBS DynaPDF Plugin.
DynaPDFRelFileNodeMBS - DynaPDFRenderJobMBS