Platforms to show: All Mac Windows Linux Cross-Platform

Back to DynaPDFMBS class.

Previous items Next items

DynaPDFMBS.GetFieldMapName(Field as Integer) as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 8.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The function retrieves the mapping name of a specific form field if set.

The result string is in unicode or ASCII encoding.

See also GetFieldMapName function in DynaPDF manual.

DynaPDFMBS.GetFieldName(Field as Integer) as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 8.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The function retrieves the name of a specific interactive form field.

Some examples using this method:

See also GetFieldName function in DynaPDF manual.

DynaPDFMBS.GetFieldOrientation(Field as Integer) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 8.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The function returns the orientation of a field.

See also GetFieldOrientation function in DynaPDF manual.

DynaPDFMBS.GetFieldTextAlign(Field as Integer) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 8.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The function returns the text alignment of a text field or button field.

See also GetFieldTextAlign function in DynaPDF manual.

DynaPDFMBS.GetFieldTextColor as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 8.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The function returns the default text color used for newly created fields.

See also GetFieldTextColor function in DynaPDF manual.

DynaPDFMBS.GetFieldToolTip(Field as Integer) as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 8.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The function retrieves a pointer to the tool tip string of a specific interactive form field.

The result string has either unicode or ascii encoding.

See also GetFieldToolTip function in DynaPDF manual.

DynaPDFMBS.GetFieldType(Field as Integer) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 8.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The function returns the field type.

Some examples using this method:

See also GetFieldType function in DynaPDF manual.

DynaPDFMBS.GetFillColor as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 8.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The function returns the current color used for fillings.

See also GetFillColor function in DynaPDF manual.

DynaPDFMBS.GetFontCount as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 8.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Queries the font count.

Some examples using this method:

See also GetFontCount function in DynaPDF manual.

DynaPDFMBS.GetFontEx(index as Integer) as DynaPDFFontMBS   Deprecated

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 8.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
This item is deprecated and should no longer be used. You can use GetFontInfo instead.
Queries the font information for the font specified by the index value.
Example
// create PDF object with page
dim pdf as new DynaPDFMBS
call pdf.CreateNewPDF(nil)
call pdf.Append

// draw some text
call pdf.SetFont "Times", pdf.kfsItalic, 40.0, true, pdf.kcp1252
call pdf.WriteFText pdf.ktaCenter, "My first Xojo output!"

// and list all fonts:
dim n as Integer = pdf.GetFontCount-1

for i as Integer = 0 to n
MsgBox pdf.GetFontEx(i).FontName
next

Returns nil on any error.
Index from 0 to GetFontCount-1.

See also GetFontEx function in DynaPDF manual.

DynaPDFMBS.GetFontInfoEx(index as Integer) as DynaPDFFontInfoMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 14.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Retrieves the most important properties of a font.

This function accepts a font handle instead. A font handle is a simple array index. To enumerate all fonts of a document execute the function in a loop from zero to GetFontCount - 1.

If the function succeeds the return value is font info object. If the function fails the return value is nil.

Some examples using this method:

See also GetFontInfoEx function in DynaPDF manual.

DynaPDFMBS.GetFontMetrics(FontHandle as Integer) as DynaPDFFontMetricsMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 19.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Queries font metrics for a font handle.

See also GetFontMetrics function in DynaPDF manual.

DynaPDFMBS.GetFontOrigin as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 8.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The function returns the current font origin.

See also GetFontOrigin function in DynaPDF manual.

DynaPDFMBS.GetFontSearchOrder as Integer()

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 10.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns the font search order.

The values in the array use this constants:
kfbtTrueTypeTrueType, TrueType Collections, or OpenType fonts with TrueType outlines
kfbtType1Type1 font
kfbtOpenTypeOpenType font with Postscript outlines
kfbtStdFontPDF Standard font
kfbtDisabled This value can be used to disable a specific font format.

The array has 4 values.

See also GetFontSearchOrder function in DynaPDF manual.

DynaPDFMBS.GetFontSelMode as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 8.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The function returns the current font selection mode.

See also GetFontSelMode function in DynaPDF manual.

DynaPDFMBS.GetFontWeight as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 8.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The function returns the weight that will be used to emulate a bold font style.

See also GetFontWeight function in DynaPDF manual.

DynaPDFMBS.GetFTextHeight(Align as Integer, aText as string) as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 8.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The function measures the height of a formatted text block.

The text parameter is converted to unicode.

Some examples using this method:

See also GetFTextHeight function in DynaPDF manual.

DynaPDFMBS.GetFTextHeightAnsi(Align as Integer, aText as string) as Double   Deprecated

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 8.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
This item is deprecated and should no longer be used. You can use the non ANSI function instead.
The function measures the height of a formatted text block.

The text parameter is converted to ANSI.

See also GetFTextHeight function in DynaPDF manual.

DynaPDFMBS.GetFTextHeightEx(Width as Double, Align as Integer, aText as string) as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 8.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The function measures the height of a formatted text block.

The text parameter is converted to unicode.

See also GetFTextHeightEx function in DynaPDF manual.

DynaPDFMBS.GetFTextHeightExAnsi(Width as Double, Align as Integer, aText as string) as Double   Deprecated

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 8.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
This item is deprecated and should no longer be used. You can use the non ANSI function instead.
The function measures the height of a formatted text block.

The text parameter is converted to ANSI.

See also GetFTextHeightEx function in DynaPDF manual.

DynaPDFMBS.GetGlyphIndex(Index as UInt32) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 16.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The function returns the glyph index of the given code page or Unicode index.

How Index must be defined depends on the code page with which the font was loaded. For example, if the font was loaded with a 8 bit code page, then indexes below 256 are treated as index into the code page table. Higher indexes are treated as Unicode value in this case. Note that all Unicode encoded glyphs of the font are accessible in this case, also if the font was loaded with a 8 bit code page!

At time of publication the function does not support CJK code pages which require a conversion to Unicode, e.g. cpCJK_Big5_Uni, cpCJK_EUC_JP_Uni, and so on.

If the function succeeds the return value is greater or equal zero. If the function fails the return value is a negative error code.

Some examples using this method:

See also GetGlyphIndex function in DynaPDF manual.

DynaPDFMBS.GetGlyphOutline(Index as UInt32) as DynaPDFGlyphOutlineMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 16.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The function returns the outline of a glyph of the active font.

Note that not all glyphs have an outline. A space character, for example, has no outline and therefore the size can be zero. The function returns normalized outlines scaled to a font size of 1000 units.

Please see dynapdf_help.pdf and our example project on how to process the outline data.

Some examples using this method:

See also GetGlyphOutline function in DynaPDF manual.

DynaPDFMBS.GetGoToAction(index as Integer, Decompress as Boolean = false, ImageParseFlags as Integer = &h00000080) as DynaPDFGoToActionMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 17.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Queries details for a GoToR action.

Index is from 0 to GetActionCount-1.

If Decompress is true, all file specification containing compressed data are uncompressed.
And ImageParseFlags defines how GetImageObj is called internally to decompress image. Default is to only get image info, but you can pass other values to actually get image data.

See also GetGoToAction function in DynaPDF manual.

DynaPDFMBS.GetGoToRAction(index as Integer, Decompress as Boolean = false, ImageParseFlags as Integer = &h00000080) as DynaPDFGoToActionMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 17.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Queries details for a GoTo action.

Index is from 0 to GetActionCount-1.

If Decompress is true, all file specification containing compressed data are uncompressed.
And ImageParseFlags defines how GetImageObj is called internally to decompress image. Default is to only get image info, but you can pass other values to actually get image data.

See also GetGoToRAction function in DynaPDF manual.

DynaPDFMBS.GetGStateFlags as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 8.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The function returns the current graphics state flags.

See also GetGStateFlags function in DynaPDF manual.

DynaPDFMBS.GetHideAction(index as Integer) as DynaPDFHideActionMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 17.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Queries details for a hide action.

Index is from 0 to GetActionCount-1.

See also GetHideAction function in DynaPDF manual.

DynaPDFMBS.GetIconColor as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 8.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The function returns the icon color used for newly created text annotations.

See also GetIconColor function in DynaPDF manual.

DynaPDFMBS.GetImageBuffer as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 8.6 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns the image buffer.

Some examples using this method:

See also GetImageBuffer function in DynaPDF manual.

DynaPDFMBS.GetImageBufferMemory as memoryblock

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 13.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns the image buffer.

Some examples using this method:

DynaPDFMBS.GetImageCount(File as folderitem) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 8.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The function returns the number of images contained in a multi page image.

See also:

Some examples using this method:

See also GetImageCount function in DynaPDF manual.

DynaPDFMBS.GetImageCount(Path as string) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 12.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The function returns the number of images contained in a multi page image.

See also:

See also GetImageCount function in DynaPDF manual.

DynaPDFMBS.GetImageCountEx(Buffer as Memoryblock) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 13.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The function determines the number of images in a multi-page image in the same way as GetImageCount(), but accepts a file buffer as input.

See also:

See also GetImageCountEx function in DynaPDF manual.

DynaPDFMBS.GetImageCountEx(Buffer as string) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 8.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The function determines the number of images in a multi-page image in the same way as GetImageCount(), but accepts a file buffer as input.

See also:

See also GetImageCountEx function in DynaPDF manual.

DynaPDFMBS.GetImageHeight(Handle as Integer) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 8.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The function returns the height of an image in pixel.

See also GetImageHeight function in DynaPDF manual.

DynaPDFMBS.GetImageObj(Handle as UInt32, Flags as Integer = 0) as DynaPDFImageMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 14.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The function retrieves the properties of an image as well as the decompressed image buffer if needed.

For the flags use the constants: kpfNone, kpfDecomprAllImages, kpfNoJPXDecode, kpfDitherImagesToBW, kpfConvImagesToGray, kpfConvImagesToRGB, kpfConvImagesToCMYK or kpfImageInfoOnly.

By default all images are returned decompressed, with exception of image types which are already stored in a valid file format like JPEG and JPEG 2000 images.
If all image types should be decompressed set the flag kpfDecompressAllImages.
This function allocates memory that should be released with FreeImageObj when finish.
Image handles are simple array indexes. The number of image objects can be determined with GetImageObjCount. Note that this array does not include inline images which are stored in content streams. Such images can only be accessed with ParseContent().

Returns the function succeeds the return value is true. If the function fails the return value is false.

Some examples using this method:

See also GetImageObj function in DynaPDF manual.

DynaPDFMBS.GetImageObjCount as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 14.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns the number of image objects which were loaded with DynaPDF functions or imported from external PDF files.

The images can be accessed with GetImageObj().
The return value is the number of image objects. This function cannot fail.

Some examples using this method:

See also GetImageObjCount function in DynaPDF manual.

DynaPDFMBS.GetImageWidth(Handle as Integer) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 8.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The function returns the width of an image in pixel.

See also GetImageWidth function in DynaPDF manual.

DynaPDFMBS.GetImportDataAction(index as Integer, Decompress as Boolean = false, ImageParseFlags as Integer = &h00000080) as DynaPDFImportDataActionMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 17.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Queries details for an import action.

Index is from 0 to GetActionCount-1.

If Decompress is true, all file specification containing compressed data are uncompressed.
And ImageParseFlags defines how GetImageObj is called internally to decompress image. Default is to only get image info, but you can pass other values to actually get image data.

See also GetImportDataAction function in DynaPDF manual.

DynaPDFMBS.GetImportFlags as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 8.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The function returns the current import flags used to import PDF files.

See also GetImportFlags function in DynaPDF manual.

DynaPDFMBS.GetImportFlags2 as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 17.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Queries import flags 2.

See also GetImportFlags2 function in DynaPDF manual.

DynaPDFMBS.GetInBBox(PageNum as Integer, Boundary as Integer) as DynaPDFRectMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 8.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The function retrieves a bounding box of an external PDF page.
Example

dim pdf as new MyDynaPDFMBS

// open some PDF
call pdf.CreateNewPDF(nil)
call pdf.OpenImportFile(file, 0, "")

// query page size
dim bounds as DynaPDFRectMBS = pdf.GetInBBox(1, pdf.kpbMediaBox)

Some examples using this method:

See also GetInBBox function in DynaPDF manual.

DynaPDFMBS.GetInDocInfo(DInfo as Integer, byref value as string) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 8.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The function retrieves a document info entry from an external PDF file as Unicode string.

Some examples using this method:

See also GetInDocInfo function in DynaPDF manual.

DynaPDFMBS.GetInDocInfoCount as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 8.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The function returns the number of available document info entries of the currently opened import file or a negative error code on failure.

Some examples using this method:

See also GetInDocInfoCount function in DynaPDF manual.

DynaPDFMBS.GetInDocInfoEx(index as Integer, byref DInfo as Integer, byref key as string, byref value as string) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 8.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The function returns a document info entry from the currently opened import file.
Example
dim p as new DynaPDFMBS

call p.CreateNewPDF(nil)

// Skip anything that is not required
call p.SetImportFlags p.kifImportAll+p.kifImportAsPage

// From which PDF file do you want to extract the information?
call p.OpenImportFile(file, p.kptOpen, "")

// lookup all document information

dim count as integer = p.GetInDocInfoCount
for i as integer = 0 to count-1

dim DInfo as integer
dim key as string
dim value as string
if p.GetInDocInfoEx(i, DInfo, key, value) >= 0 then

dim Type as string
select case dinfo
case p.kdiAuthor
type = "Author"
case p.kdiCreator
type = "Creator"
case p.kdiKeywords
type = "Keywords"
case p.kdiProducer
type = "Producer"
case p.kdiSubject
type = "Subject"
case p.kdiTitle
type = "Title"
case p.kdiCompany
type = "Company"
case p.kdiPDFX_Ver
type = "PDF/X Version"
case p.kdiCustom
type = "Custom"
case p.kdiPDFX_Conf
type = "PDF/X Config"
case p.kdiCreationDate
type = "Creation Date"
case p.kdiModDate
type = "Modification Date"
else
Break
type = "?"
end Select

List.AddRow type, key, value
end if

next

// close import file
call p.CloseImportFile

The key result is an ASCII string.
The value result is an ASCII or Unicode string.

Some examples using this method:

See also GetInDocInfoEx function in DynaPDF manual.

DynaPDFMBS.GetInEncryptionFlags as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 8.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The function returns the encryption flags of the currently opened import file.

See also GetInEncryptionFlags function in DynaPDF manual.

DynaPDFMBS.GetInFieldCount as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 11.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns number of field in open import file.

See also GetInFieldCount function in DynaPDF manual.

DynaPDFMBS.GetInIsCollection as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 8.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The function checks whether the currently opened import file is a portable collection.

Changed to integer in order to allow returning error codes besides 0 for false and 1 for true.

Some examples using this method:

See also GetInIsCollection function in DynaPDF manual.

DynaPDFMBS.GetInIsEncrypted as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 8.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The function checks whether the currently opened import file is encrypted.

Changed to integer in order to allow returning error codes besides 0 for false and 1 for true.

See also GetInIsEncrypted function in DynaPDF manual.

DynaPDFMBS.GetInIsSigned as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 8.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
This function can be used to determine whether a PDF file contains a digital signature.

Changed to integer in order to allow returning error codes besides 0 for false and 1 for true.

See also GetInIsSigned function in DynaPDF manual.

Previous items Next items

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


The biggest plugin in space...