Platforms to show: All Mac Windows Linux Cross-Platform

Back to DynaPDFMBS class.

Previous items Next items

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.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 (happens automatically in DynaPDFImageMBS destructor).
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
Var pdf as new MyDynaPDFMBS

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

// query page size
Var 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
Var 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

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

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

Var 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.GetInEncryptionInfo as DynaPDFEncryptInfoMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 24.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Retrieves encryption settings of the currently active import file.

It is not meaningful to call this function on an unencrypted file. Therefore, call GetInIsEncrypted() beforehand to determine whether the file is encrypted.

See also GetInEncryptionInfo 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 Boolean

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 boolean in version 24.4. Used to be integer.

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.

DynaPDFMBS.GetInIsTaggedPDF as integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 21.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Whether the currently open import file is a Tagged PDF file.

The PDF file must be opened beforehand with OpenImportFile() or OpenImportBuffer().
The return value is a set flags indicating the tagging status of the file.

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

See also GetInIsTaggedPDF function in DynaPDF manual.

DynaPDFMBS.GetInIsTrapped as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 10.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Whether the input PDF is trapped.

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

See also GetInIsTrapped function in DynaPDF manual.

DynaPDFMBS.GetInIsXFAForm as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 8.6 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Whether the input PDF is a XFA form.

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

See also GetInIsXFAForm function in DynaPDF manual.

DynaPDFMBS.GetInMetadata(PageNum as Integer) as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 14.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Access the optional metadata streams of pages or the global metadata stream of the current open import file.

Metadata streams are in XMP format that is a superset of XML. The PDF file must be opened with OpenImportImportFile or OpenImportBuffer beforehand.
Although the global XMP stream does usually exist in todays PDF files, metadata streams are optional and maybe not present. The function returns true if no error occurs, also if no metadata stream is present.

See also GetInMetadata function in DynaPDF manual.

DynaPDFMBS.GetInOrientation(PageNum 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 specific page within the currently open import file (see also OpenImportFile()).

Some examples using this method:

See also GetInOrientation function in DynaPDF manual.

DynaPDFMBS.GetInPageCount 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 pages contained in an external PDF file.

Some examples using this method:

See also GetInPageCount function in DynaPDF manual.

DynaPDFMBS.GetInPDFVersion 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 minor PDF version number of an external PDF file.

See also GetInPDFVersion function in DynaPDF manual.

DynaPDFMBS.GetInPDFVersionEx as DynaPDFVersionInfoMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 21.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The function retrieves the version information of the currently open import file.

See also GetInPDFVersionEx function in DynaPDF manual.

DynaPDFMBS.GetInPrintSettings as DynaPDFPrintSettingsMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 8.7 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Queries the print settings for the imported document.

This is a PDF 1.7 extension.

See also GetInPrintSettings function in DynaPDF manual.

DynaPDFMBS.GetInRepairMode as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 11.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
This function can be used to determine whether the current open import file was opened in repair or normal mode.

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

See also GetInRepairMode function in DynaPDF manual.

DynaPDFMBS.GetIsFixedPitch 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 1 if the active font is a fixed pitch font or 0 if the font is a variable pitch font.

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

See also GetIsFixedPitch function in DynaPDF manual.

DynaPDFMBS.GetIsTaggingEnabled as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 11.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Whether tagging is enabled.

See also GetIsTaggingEnabled function in DynaPDF manual.

DynaPDFMBS.GetItalicAngle 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 returns the italic angle in degrees that will be used to emulate italic style fonts.

See also GetItalicAngle function in DynaPDF manual.

DynaPDFMBS.GetJavaScript(Handle 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 returns a global JavaScript as string.

The result text string has either unicode or ASCII encoding.

You can use JavaScriptEngineMBS class to execute JavaScript without HTMLViewer in our own cross platform JavaScript engine.

If the JavaScript is attached to a field, please use GetFieldEx functions to get the action handle (DynaPDFFieldExMBS.Action) and then use GetJavaScriptAction instead.

See also GetJavaScript function in DynaPDF manual.

DynaPDFMBS.GetJavaScriptAction(Handle as Integer) as string   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 GetJavaScriptActionEx instead.
Returns a java script action value for the given handle.

May return an unicode string.

See also:

See also GetJavaScriptAction function in DynaPDF manual.

DynaPDFMBS.GetJavaScriptAction(ObjType as Integer, ObjHandle as Integer, ActIndex as Integer, byref ObjEvent as Integer) as string   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 GetJavaScriptActionEx instead.
Returns a java script action value for the given object.

May return an unicode string.

The ObjEvent parameter was added in plugin version 9.3 and contains a value from the koe* constants.

See also:

See also GetJavaScriptAction function in DynaPDF manual.

DynaPDFMBS.GetJavaScriptActionEx(index as Integer) as DynaPDFJavaScriptActionMBS

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 javascript action.

Index is from 0 to GetActionCount-1.

Some examples using this method:

See also GetJavaScriptActionEx function in DynaPDF manual.

DynaPDFMBS.GetJavaScriptCount 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 global JavaScripts contained in a document.

Some examples using this method:

See also GetJavaScriptCount function in DynaPDF manual.

DynaPDFMBS.GetJavaScriptEx(Name as string) 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 returns a global JavaScript as string by using the script s name instead of a handle to identify the script.

The result string is an unicode or an ASCII string.

You can use JavaScriptEngineMBS class to execute JavaScript without HTMLViewer in our own cross platform JavaScript engine.

If the JavaScript is attached to a field, please use GetFieldEx functions to get the action handle (DynaPDFFieldExMBS.Action) and then use GetJavaScriptAction instead.

Some examples using this method:

See also GetJavaScriptEx function in DynaPDF manual.

DynaPDFMBS.GetJavaScriptName(Handle 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 returns the name of a global JavaScript.

The result string has either unicode or ASCII encoding.

Some examples using this method:

See also GetJavaScriptName function in DynaPDF manual.

DynaPDFMBS.GetJPEGQuality 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 JPEG compression quality in percent used for newly inserted images which are compressed with JPEG.

See also GetJPEGQuality function in DynaPDF manual.

DynaPDFMBS.GetLanguage 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 returns the language identifier of the document as an ISO 3166 language tag or IANA tag, or "" if not set.

See also GetLanguage function in DynaPDF manual.

DynaPDFMBS.GetLastTextOffset as UInt32

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 23.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns current text offset for WriteFText.

This lets you know how much text is left to write when you get a page break event.

Some examples using this method:

DynaPDFMBS.GetLastTextPosX 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 returns the x coordinate of the last printed text.

Some examples using this method:

DynaPDFMBS.GetLastTextPosXAbs as double

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 25.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The function returns the x coordinate of the last printed text.

This function returns the absolute end position of the last drawn text after applying coordinate transformations, if any. The relative end point before applying coordinate transformations is returned by GetLastTextPosX() / GetLastTextPosY().

The y-coordinate is the position of the text's baseline measured in bottom-up coordinates.
Note that the reference point of WriteFText() is the baseline plus font size, independent of the current coordinate system. In contrast, the reference point of WriteText() is the baseline if bottom up coordinates are active and the baseline plus font size if top down coordinates are active (see SetPageCoords() for further information).

If the function succeeds the return value is the x- or y-coordinate. This value can be negative depending on the coordinate where the string was placed. If the function fails the return value is a negative error code. An error code is smaller than -33554531.0.

Previous items Next items

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


The biggest plugin in space...