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:
10.1
10.2
10.3
10.4
10.5
11.0
11.1
11.2
11.3
11.4
Statistic
FMM
Blog
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 | iOS SDK |
DynaPDF | 5.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example | Flags |
---|---|---|---|
The PDF reference returned from DynaPDF.New. | |||
GrayIsColor | Boolean whether gray should count as color. Default is 0. Pass 1 to count gray as color. |
0 | Optional |
Returns OK or error.
See also IsColorPage function in DynaPDF manual.
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) ]
Created 6th February 2015, last changed 3th June 2021
DynaPDF.InsertMetafileEx - DynaPDF.IsEmptyPage
Feedback: Report problem or ask question.