/*********************************************************************
ADOBE SYSTEMS INCORPORATED
Copyright (C) 2000-2003 Adobe Systems Incorporated
All rights reserved.
NOTICE: Adobe permits you to use, modify, and distribute this file
in accordance with the terms of the Adobe license agreement
accompanying it. If you have received this file from a source other
than Adobe, then your use, modification, or distribution of it
requires the prior written permission of Adobe.
---------------------------------------------------------------------
Watermark.h
*********************************************************************/
#ifndef WATERMARK_H
#define WATERMARK_H
/* ------------------------------
data structure
--------------------------------*/
// const.
const int COLOR_GRAY = 0;
const int COLOR_RED = 1;
const int COLOR_GREEN = 2;
const int COLOR_BLUE = 3;
const int FIRST_PAGE = 1;
const int ALL_PAGES = 0;
// parameters for watermark
const int mFontSize = 60;
const int mAngle = 30;
const int mColor = COLOR_GRAY;
const float mOpacity = 0.5f;
const int mPage = ALL_PAGES;
// public functions in Watermark.cpp
bool AddWatermark(
PDDoc pdDoc, const char *text );
bool Serialize( const char *inputFileName, const char *outputFileName, const char *watermark );
#endif