Watermark PDF using PHP

Watermark PDF files. Stamp a PDF with the text.

Features of Our Watermark PDF for PHP

Add text watermark to PDF files easily with Watermark PDF PHP SDK.

Lightning Fast Conversions

Process and convert files in seconds with our high-performance cloud infrastructure.

Accuracy Guaranteed

Our advanced algorithms ensure pixel-perfect and content-accurate file conversions.

Enterprise-Grade Security

ISO 27001, HIPAA, SOC 2, and GDPR compliant with encrypted file processing.

Global Infrastructure

Strategically located servers ensure low latency and high availability worldwide.

Developer Friendly

Comprehensive SDKs and clear documentation for quick and simple integration.

Time-Saving Automation

Automate repetitive document workflows and focus on what matters most.

Integrate using PHP

Easy Watermark PDF integration programmatically using our simple PHP SDK

Composer library install

Install the ConvertAPI library for PHP using Composer or manually using the ConvertAPI autoloader.

Authenticate

Sign up for a free account and authenticate the library using your Secret key or API token.

Customize Parameters

Set up the conversion parameters, and copy the auto-generated code snippet in your account dashboard.

Try the Watermark PDF conversion online

Try it Free

Customizable Parameters

Fine-tune your automation with these powerful conversion options

Open Password String

Sets the password to open protected documents.

Page Range String

Set page range. Example 1-10 or 1,2,5.

Watermark text String

Specifies the text to use as watermark. The list of supported variables:

  • %PAGE% - current page number
  • %PAGES% - total number of pages
  • %FILENAME% - name of the file
  • %WEEKDAY% - full weekday name
  • %WEEKDAY_SHORT% - abbreviated weekday name
  • %MONTH% - month number (1-12)
  • %MONTHNAME% - full month name
  • %MONTHNAME_SHORT% - abbreviated month name
  • %YEAR% - year with century (YYYY)
  • %YEAR_SHORT% - year without century (YY)
  • %DAY% - day of month
  • %DAY_YEAR% - day of the year (1 -366)
  • %HOUR% - hour (01- 12)
  • %HOURS% - hour (00-23)
  • %MINUTES% - minutes (00-59)
  • %SECONDS% - seconds (00-59)
  • %AMPM% - AM PM
  • %DATE% - local date representation
  • %TIME% - local time representation
  • %DATETIME% - local date and time
  • %AUTHOR% - document Author
  • %TITLE% - document Title
  • %SUBJECT% - document Subject
  • %KEYWORDS% - document Keywords
Watermark font name Collection

Specifies the watermark font name. Contact us if you are looking for a specific font for a watermark that is missing from the list.

Available values:   Arial Bahnschrift Calibri Cambria Consolas Constantia Courier New Georgia Tahoma Times New Roman Verdana

Watermark font size Integer

Specifies the watermark font size.

Watermark font color String

Specifies the watermark font color.

Stroke color String

Specifies font stroke color.

Stroke width Integer

Specifies the stroke width.

Embed watermark font Bool

Specifies whether fonts should be embedded.

Font subset Bool

Specifies whether fonts should be subset.

Font encoding String

Specifies the font encoding.

Text rendering mode Collection

Specifies the text rendering mode.

Available values:   fill text without stroke stroke text without fill fill and stroke invisible

Rotate watermark Integer

Specifies the watermark rotation angle in degrees.

Opacity level Integer

Specifies watermark opacity level.

Watermark style Collection

Specifies watermark style, stamp or watermark. The stamp is placed over page content and watermark under page content.

Available values:   stamp watermark

Go to web link String

Specifies the web address to go when the watermark is clicked.

Go to page String

Specifies the page number to go when the watermark is clicked.

Use page rotation Bool

Specifies whether to use the page rotation parameter when placing watermark.

Use crop box Bool

Specifies whether to use the page crop box to position watermark.

Horizontal watermark alignment Collection

Specifies the horizontal watermark alignment.

Available values:   left center right

Vertical watermark alignment Collection

Specifies the vertical watermark alignment.

Available values:   top center bottom

Watermark X coordinate Integer

Specifies the watermark X coordinate. If set overrides property HorizontalAlignment.

Watermark Y coordinate Integer

Specifies the watermark Y coordinate. If set overrides property VerticalAlignment.

Watermark position unit Collection

Specifies measurement unit to use for the PositionX and PositionY properties.

Available values:   points inches millimeters centimeters

Embed fonts Bool

Embed fonts in PDF.

Subset fonts Bool

Include in the output PDF document only the font characters that are used in the original document.

Subset fonts threshold Integer

Sets the Subset Fonts threshold. If the percentage of used characters, compared with total characters of the particular font, exceeds this threshold, the entire font is embedded.

PDF version Collection

Set PDF version.

Available values:   Acrobat 3 (PDF 1.2) Acrobat 4 (PDF 1.3) Acrobat 5 (PDF 1.4) Acrobat 6 (PDF 1.5) Acrobat 7 (PDF 1.6) Acrobat 8 (PDF 1.7) Acrobat 9 (PDF 1.7, e-level 3) Acrobat DC (PDF 2.0)

PDF resolution Integer

Set PDF resolution.

PDF title String

Provide a value to customize the PDF title. Otherwise, the default document title will be used. Use single quotes and a space (' ') to remove the title.

PDF subject String

Provide a value to customize the PDF subject. Otherwise, the default document subject will be used. Use single quotes and a space (' ') to remove the subject.

PDF author String

Provide a value to customize the PDF author. Otherwise, the default document author will be used. Use single quotes and a space (' ') to remove the author.

PDF keywords String

Provide a value to customize the PDF keywords. Otherwise, the default document keywords will be used. Use single quotes and a space (' ') to remove the keywords.

Open to page Integer

Set the page number at which the PDF document should open.

PDF default zoom Collection

Set the default zoom percentage for when you open PDF files .

Available values:   Default Actual Size Fit Page Fit Width Fit Height Fit Visible 25% 50% 75% 100% 125% 150% 200% 400% 800% 1600% 2400% 3200% 6400%

Auto rotate page Collection

Automatically rotate pages based on the orientation of the text. By Page option will rotate each page based on the direction of the text on that page. All option will rotate all pages in the document based on the orientation of the majority of text.

Available values:   Disabled By Page All

PDF color space Collection

Set PDF color space.

Available values:   Default RGB CMYK Gray

Integrate within minutes

Our user-friendly interactive demo enables you to easily set up and test the conversion from your account dashboard with just a few simple clicks.

Set up Watermark PDF parameters

Upload your PDF document that you wish to convert, and set up any additional conversion parameters using our intuitive and user-friendly interface. You can fine-tune and adjust the conversion parameters to suit your needs with no technical knowledge required.

Get Started for Free

Download the Conversion Result

When you have your conversion parameters set up, you can run the conversion and download the converted document to evaluate the Watermark PDF conversion quality. You can further adjust the parameters if needed, until you are satisfied with the result.

Get Started for Free

Copy Auto-Generated Code Snippet

Once you are happy with the conversion result, you can copy the auto-generated code snippet to your project and use it to perform the conversion programmatically. This will save you time and effort, and you will be able to focus on your project development.

Get Started for Free

Businesses trust us

Highest rated File Conversion API on major B2B software listing platforms: Capterra, G2, and Trustpilot.

"ConvertAPI has been a game-changer for our document automation workflows. Their conversion accuracy and API reliability are unmatched in the industry for over 7 years."

"ConvertAPI is a reliable, cost-effective solution with a proven track record of stability. It has grown significantly in maturity, adopting enterprise-grade practices over the years."

"We've integrated ConvertAPI across our entire document processing platform. The performance is exceptional and the support team is always responsive. Highly recommended!"

Data security is our top priority

We ensure that all document processing is handled securely in the cloud, adhering to industry-leading standards like ISO 27001, GDPR, and HIPAA. To enhance security even further, we can ensure that no files or data are stored on our servers and never leave your country.

Learn more about security

Ready to Streamline Your File Conversions?