|
PoDoFo 0.9.20
|
#include <PdfExtGState.h>
Public Member Functions | |
| PdfExtGState (PdfDocument &doc) | |
| void | SetFillOpacity (double opac) |
| void | SetStrokeOpacity (double opac) |
| void | SetBlendMode (const std::string_view &blendMode) |
| void | SetOverprint (bool enable=true) |
| void | SetFillOverprint (bool enable=true) |
| void | SetStrokeOverprint (bool enable=true) |
| void | SetNonZeroOverprint (bool enable=true) |
| void | SetRenderingIntent (const std::string_view &intent) |
| void | SetFrequency (double frequency) |
| const PdfName & | GetIdentifier () const |
This class wraps the ExtGState object used in the Resource Dictionary of a Content-supporting element (page, Pattern, etc.) The main usage is for transparency, but it also support a variety of prepress features.
| PdfExtGState::PdfExtGState | ( | PdfDocument & | doc | ) |
Create a new PdfExtGState object which will introduce itself automatically to every page object it is used on.
| parent | parent document |
|
inline |
Returns the identifier of this ExtGState how it is known in the pages resource dictionary.
| void PdfExtGState::SetBlendMode | ( | const std::string_view & | blendMode | ) |
Sets the transparency blend mode
| blendMode | one of the predefined blending modes (see PdfDeclarations.h) |
| void PdfExtGState::SetFillOpacity | ( | double | opac | ) |
Sets the opacity value to be used for fill operations
| opac | a floating point value from 0 (transparent) to 1 (opaque) |
| void PdfExtGState::SetFillOverprint | ( | bool | enable = true | ) |
Enables/Disables overprinting for Fill operations
| enable | enable or disable |
| void PdfExtGState::SetFrequency | ( | double | frequency | ) |
Set the frequency for halftones
| frequency | screen frequency, measured in halftone cells per inch in device space |
| void PdfExtGState::SetNonZeroOverprint | ( | bool | enable = true | ) |
Enables/Disables non-zero overprint mode
| enable | enable or disable |
| void PdfExtGState::SetOverprint | ( | bool | enable = true | ) |
Enables/Disables overprinting for both Fill & Stroke
| enable | enable or disable |
| void PdfExtGState::SetRenderingIntent | ( | const std::string_view & | intent | ) |
Set the Rendering Intent
| intent | one of the predefined intents |
| void PdfExtGState::SetStrokeOpacity | ( | double | opac | ) |
Sets the opacity value to be used for stroking operations
| opac | a floating point value from 0 (transparent) to 1 (opaque) |
| void PdfExtGState::SetStrokeOverprint | ( | bool | enable = true | ) |
Enables/Disables overprinting for Stroke operations
| enable | enable or disable |