Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
DynaPDF.IsColorPage
Checks whether a page is a color page or if all graphic elements of the page use black & white only.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| DynaPDF | 5.0 | Yes | Yes | Yes | Yes | Yes |
Parameters
| Parameter | Description | Example |
|---|---|---|
| The PDF reference returned from DynaPDF.New. |
Result
Returns OK or error.
Description
Checks whether a page is a color page or if all graphic elements of the page use black & white only.If the parameter GrayIsColor is true, gray shades are treated as color. The page which should be checked must be opened with the function DynaPDF.EditPage beforehand.
Complex color spaces such as Lab, Separation, DeviceN, Colored Tiling Patterns, and Shadings are always treated as color. The function does not return when a color is set, the color must be used by an object.
If an object of the page uses a color, the return value is 1. If no object uses a color the return value is 0.
See also IsColorPage function in DynaPDF manual.
Examples
Check if first page has color:
Set Variable [ $pdf ; Value: MBS("DynaPDF.New") ]
# Load PDF from container
Set Variable [ $r ; Value: MBS("DynaPDF.OpenPDFFromContainer"; $pdf; Start::SourcePDF) ]
Set Variable [ $r ; Value: MBS("DynaPDF.ImportPDFFile"; $pdf) ]
# Query image list
Set Variable [ $r ; Value: MBS("DynaPDF.EditPage"; $pdf; 1) ]
Show Custom Dialog [ MBS( "DynaPDF.IsColorPage"; $PDF ) ]
Set Variable [ $r ; Value: MBS("DynaPDF.EndPage"; $pdf) ]
Set Variable [ $r ; Value: MBS("DynaPDF.Release"; $pdf) ]
See also
- DynaPDF.ConvertColors
- DynaPDF.EditPage
- DynaPDF.EndPage
- DynaPDF.ImportPDFFile
- DynaPDF.IsEmptyPage
- DynaPDF.New
- DynaPDF.OpenPDFFromContainer
- DynaPDF.Release
Blog Entries
Release notes
- Version 9.2
- Fixed DynaPDF.IsColorPage function result.
Created 6th February 2015, last changed 14th May 2019
DynaPDF.InsertMetafileEx - DynaPDF.IsEmptyPage
Feedback: Report problem or ask question.
Links
MBS Xojo Chart Plugins