Platforms to show: All Mac Windows Linux Cross-Platform

Back to DynaPDFRasterImageMBS class.

Previous items

DynaPDFRasterImageMBS.krfRotate270 = &h00000400

Type Topic Plugin Version
const DynaPDF MBS DynaPDF Plugin 11.3
One of the raster flag constants.

Rotate the page 270 degress.

DynaPDFRasterImageMBS.krfRotate90 = &h00000100

Type Topic Plugin Version
const DynaPDF MBS DynaPDF Plugin 11.3
One of the raster flag constants.
Example
dim pdf as new DynaPDFMBS // make subclass to catch error event

dim f as FolderItem = SpecialFolder.Desktop.Child("dynapdf_help.pdf")

// create PDF
call pdf.CreateNewPDF(nil)
// set import flags
call pdf.SetImportFlags(pdf.kifImportAll + pdf.kifImportAsPage)

// open import file
call pdf.OpenImportFile(f, 0, "")

// import all pdf pages
call pdf.ImportPDFFile(1, 1.0, 1.0)

dim PageCount as Integer = pdf.GetPageCount

// create rasterizer.
dim r as new DynaPDFRasterizerMBS(pdf, 1000,1000)

// create options
dim o as new DynaPDFRasterImageMBS

// fill white
o.InitWhite = true

// scale to fit
o.DefScale = o.kpsFitBest

// rotate
o.Flags = o.krfRotate90

// render all pages
for i as Integer = 1 to PageCount

dim p as DynaPDFPageMBS = pdf.GetPage(i)
if r.RenderPage(p, o) then
// save to disc
dim outfile as FolderItem = SpecialFolder.Desktop.Child("page "+Format(i,"0")+".jpg")
call outfile.SaveAsJPEGMBS(r.Pic, 75)
end
next

Rotate the page 90 degress.

DynaPDFRasterImageMBS.krfScaleToBBox = &h00100000

Type Topic Plugin Version
const DynaPDF MBS DynaPDF Plugin 15.0
One of the raster flag constants.

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.

DynaPDFRasterImageMBS.krfScaleToMediaBox = 1

Type Topic Plugin Version
const DynaPDF MBS DynaPDF Plugin 11.1
One of the raster flag constants.

Render the real paper format. Contents outside the crop box is clipped.

DynaPDFRasterImageMBS.krfSkipUpdateBG = &h00000080

Type Topic Plugin Version
const DynaPDF MBS DynaPDF Plugin 11.3
One of the raster flag constants.

Don't generate an update event after initializing the background to white.

Previous items

The items on this page are in the following plugins: MBS DynaPDF Plugin.


💬 Ask a question or report a problem
The biggest plugin in space...