/usr/include/podofo/doc/PdfExtGState.h is in libpodofo-dev 0.9.5-9.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 | #ifndef _PDF_EXTGSTATE_H_
#define _PDF_EXTGSTATE_H_
#include "podofo/base/PdfDefines.h"
#include "podofo/base/PdfName.h"
#include "PdfElement.h"
namespace PoDoFo {
class PdfObject;
class PdfPage;
class PdfWriter;
/** 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.
*/
class PODOFO_DOC_API PdfExtGState : public PdfElement {
public:
/** Create a new PdfExtGState object which will introduce itself
* automatically to every page object it is used on.
*
* \param pParent parent vector of objects
*
*/
PdfExtGState( PdfVecObjects* pParent );
/** Create a new PdfExtGState object which will introduce itself
* automatically to every page object it is used on.
*
* \param pParent parent document
*
*/
PdfExtGState( PdfDocument* pParent );
virtual ~PdfExtGState();
/** Returns the identifier of this ExtGState how it is known
* in the pages resource dictionary.
* \returns PdfName containing the identifier (e.g. /ExtGS13)
*/
inline const PdfName & GetIdentifier() const;
/** Sets the opacity value to be used for fill operations
* \param opac a floating point value from 0 (transparent) to 1 (opaque)
*/
void SetFillOpacity( float opac );
/** Sets the opacity value to be used for stroking operations
* \param opac a floating point value from 0 (transparent) to 1 (opaque)
*/
void SetStrokeOpacity( float opac );
/** Sets the transparency blend mode
* \param blendMode one of the predefined blending modes (see PodofoDefines.h)
*/
void SetBlendMode( const char* blendMode );
/** Enables/Disables overprinting for both Fill & Stroke
* \param enable enable or disable
*/
void SetOverprint( bool enable=true );
/** Enables/Disables overprinting for Fill operations
* \param enable enable or disable
*/
void SetFillOverprint( bool enable=true );
/** Enables/Disables overprinting for Stroke operations
* \param enable enable or disable
*/
void SetStrokeOverprint( bool enable=true );
/** Enables/Disables non-zero overprint mode
* \param enable enable or disable
*/
void SetNonZeroOverprint( bool enable=true );
/** Set the Rendering Intent
* \param intent one of the predefined intents (see Podofo.h)
*/
void SetRenderingIntent( const char* intent );
/** Set the frequency for halftones
* \param frequency screen frequency, measured in halftone cells per inch in device space
*/
void SetFrequency( double frequency );
private:
/** Initialize the object
*/
void Init( void );
private:
PdfName m_Identifier;
};
const PdfName & PdfExtGState::GetIdentifier() const
{
return m_Identifier;
}
};
#endif // _PDF_EXTGSTATE_H_
|