fpdf_watermark_w.h File Reference

Header file for PDF Watermark module of Foxit PDF SDK. More...

Go to the source code of this file.

Classes

struct  FSPDF_WATERMARK_SETTINGS
 Structure for watermark settings. More...
 
struct  FSPDF_WATERMARK_TEXTPROPERTIES
 Structure for watermark text properties. More...
 

Macros

Macro Definitions for Watermark Positions.
#define FSPDF_WATERMARKPOS_TOPLEFT   0
 Watermark position: top left.
 
#define FSPDF_WATERMARKPOS_TOPCENTER   1
 Watermark position: top center.
 
#define FSPDF_WATERMARKPOS_TOPRIGHT   2
 Watermark position: top right.
 
#define FSPDF_WATERMARKPOS_CENTERLEFT   3
 Watermark position: center left.
 
#define FSPDF_WATERMARKPOS_CENTER   4
 Watermark position: center.
 
#define FSPDF_WATERMARKPOS_CENTERRIGHT   5
 Watermark position: center right.
 
#define FSPDF_WATERMARKPOS_BOTTOMLEFT   6
 Watermark position: bottom left.
 
#define FSPDF_WATERMARKPOS_BOTTOMCENTER   7
 Watermark position: bottom center.
 
#define FSPDF_WATERMARKPOS_BOTTOMRIGHT   8
 Watermark position: bottom right.
 
Macro Definitions for Watermark Setting Flags.
#define FSPDF_WATERMARKFLAG_ASPAGECONTENTS   0
 If set and insert a watermark as page content (default).
 
#define FSPDF_WATERMARKFLAG_ASANNOT   1
 If set and insert a watermark as an annotation.
 
#define FSPDF_WATERMARKFLAG_ONTOP   2
 If set, show watermark above other page content.
 
#define FSPDF_WATERMARKFLAG_NOPRINT   4
 If set but do not print a watermark.
 
#define FSPDF_WATERMARKFLAG_INVISIBLE   8
 If set but do not display a watermark.
 
Macro Definitions for Watermark Text Font Style.
#define FSPDF_WATERMARK_FONTSTYLE_NORMAL   0
 Watermark font style: normal.
 
#define FSPDF_WATERMARK_FONTSTYLE_UNDERLINE   1
 Watermark font style: with underline.
 
Macro Definitions for a watermark alignment Mode.
#define FSPDF_WATERMARK_TEXTALIGNMENT_LEFT   0
 Text watermark alignment: left.
 
#define FSPDF_WATERMARK_TEXTALIGNMENT_CENTER   1
 Text watermark alignment: center.
 
#define FSPDF_WATERMARK_TEXTALIGNMENT_RIGHT   2
 Text watermark alignment: right.
 

Functions

FS_RESULT FSPDF_Watermark_CreateFromText (FSCRT_DOCUMENT document, const FSCRT_BSTR *text, const FSPDF_WATERMARK_TEXTPROPERTIES *properties, const FSPDF_WATERMARK_SETTINGS *settings, FSPDF_WATERMARK *watermark)
 Create a text watermark. More...
 
FS_RESULT FSPDF_Watermark_CreateFromBitmap (FSCRT_DOCUMENT document, FSCRT_BITMAP bitmap, const FSPDF_WATERMARK_SETTINGS *settings, FSPDF_WATERMARK *watermark)
 Create a bitmap watermark. More...
 
FS_RESULT FSPDF_Watermark_CreateFromImage (FSCRT_DOCUMENT document, FSCRT_IMAGE image, const FSPDF_WATERMARK_SETTINGS *settings, FSPDF_WATERMARK *watermark)
 Create an image watermark. More...
 
FS_RESULT FSPDF_Watermark_CreateFromPage (FSCRT_DOCUMENT document, FSCRT_PAGE page, const FSPDF_WATERMARK_SETTINGS *settings, FSPDF_WATERMARK *watermark)
 Create a page watermark. More...
 
FS_RESULT FSPDF_Watermark_InsertToPage (FSPDF_WATERMARK watermark, FSCRT_PAGE page)
 Insert a watermark into a specific page. More...
 
FS_RESULT FSPDF_Watermark_Release (FSPDF_WATERMARK watermark)
 Release a watermark object. More...
 
FS_RESULT FSPDF_Page_RemoveWatermarks (FSCRT_PAGE page)
 Remove all watermarks from a specific page. More...
 
FS_RESULT FSPDF_Watermark_Remove (FSCRT_PAGE page, FS_INT32 index)
 Remove a watermark by index from a PDF page and it does not include the SDK trial watermark. More...
 

Detailed Description

Header file for PDF Watermark module of Foxit PDF SDK.

Copyright (C) 2003-2016, Foxit Software Inc.. All Rights Reserved.

http://www.foxitsoftware.com

The following code is copyrighted and is the proprietary of Foxit Software Inc.. It is not allowed to distribute any parts of Foxit PDF SDK to third party or public without permission unless an agreement is signed between Foxit Software Inc. and customers to explicitly grant customers permissions.

This header file provides access to PDF watermark related functionality.
It contains:

  • 1. Create a watermark from a text, image, bitmap or PDF page.
  • 2. Retrieve watermark size.
  • 3. Insert a watermark into a PDF page.
  • 4. Remove all watermarks from a PDF page.
  • 5. Remove a watermark by index from a PDF page.
Note
If you want to purchase Foxit PDF SDK license and use ANY of the following functions, please request for enabling Annotation Add-on explicitly.

Foxit Corporation