top of page

Examples  UniPDF

Starting from an example can speed up code
development significantly.

  • Are the licenses perpetual?
    All licenses are perpetual - the last version one was eligible to use is forever valid. One year of updates is included with all packages. A subscription fee of 20% of initial charge is collected annually to maintain access to newer versions.
  • How do i get rid of watermark in my PDF?
    The watermark appears only for unlicensed instances of UniDoc. After applying a license it will go away.
  • Do you have a free trial?
    Yes we have a 14 days try before you buy. You can fill out our form and have a license key sent to your email address. Afterwards you can learn how to use the license key here.
  • Do i need to license my test servers?
    No, only production servers count. You can have as many testing and staging servers as you want.
  • How many servers do I need if deploying in the cloud?
    As the cloud is built to scale and is distributed in nature, a Business license is needed.
  • Can I distribute UniDoc with my application to my customers?
    Yes, all licenses are Royalty-Free.
  • Do I need to renew my subscription?
    All purchases come with 1 year of updates included. To maintain access to the newest releases of our products we charge an annual subscription fee which is 20% of the initial purchase charge. If the annual subscription is cancelled and not renewed within the update eligibility period, a new purchase must be made (including initial charge).
  • Can I cancel my annual update subscription?
    Yes you can, and if you do, you can still use the latest version of the product for which you were eligible. However, if you want to get updates in the future you need to repurchase.
  • Where can I find your EULA (End User License Agreement)?
    Our EULA covers all of our products and is located here.
  • Can I make changes to the EULA?
    For enterprise customers that want a customised EULA, there is a EULA reviewing/processing fee as we need to get our lawyers involved. The fee varies depending on the scope of changes required. Please contact us for details.
  • What payment processor do you use?
    All payments and fulfillments are processed by FastSpring.
  • Do you offer support?
    Yes, we offer various support packages see here.
Title
Description
Convert PDF to grayscale
Convert a PDF to grayscale in a vectorized fashion, including images and all content.
List annotations
Lists annotations in a PDF file.
Annotate w/text
Adds a text annotation with a user specified string to a fixed location on every page.
Annotate rectangle
Add a rectangle annotation to a specified location on a page.
Annotate line
Add a line with arrowhead between two specified points on a page.
Annotate ellipse
Annotate/mark up pages of a PDF file.
Print content streams
List all content streams for all pages in a pdf file.
Inspect PDF objects
Inspect PDF object types. This example shows the capability of assessing the object types in PDF files.
Basic PDF info
Prints basic PDF info: number of pages and encryption status.
Get PDF object
Get specific object from a PDF by number. Prints the trailer dictionary if no number specified.
Detect scanned PDF
Detect scanned PDF files by looking through the object types and determining whether it is likely to be a scanned file.
List of form fields
Lists form fields in a PDF file.
Draw line to PDF
Draw a line in a new PDF file.
Insert text to PDF
Insert text to a specific page, location in a PDF file.
Detect certain text in PDF
Basic example for text searching: Retrieving position of a signature line in PDF where the signature line is given by text. And positioned with a Tm operation above.
Extract text from PDF
PDF to text: Extract all text for each page of a pdf file.
Get PDF security info
Outputs protection information about locked PDFs.
Unlock PDF - remove password
Unlocks PDF files, tries to decrypt encrypted documents with the given password, if that fails it tries an empty password as best effort.
Protect PDF
Protects PDF files by setting a password on it. This example both sets user and opening password and hard-codes the protection bits here, but easily adjusted in the code here although not on the command line.
Check access permissions
Check access permissions for a specified PDF
Insert barcode
Create a barcode and insert on a specific location in a PDf file
Insert QR code
Create a barcode or a QR code and insert on a specific location in a PDf file
Watermark PDF
Add watermark image to each page of a PDF file
List of all images in PDF
List images in a PDF file. Passes through each page, goes through the content stream and finds instances of both
Convert images to PDF
Add images to a PDF file, one image per page
Extract images from PDF as ZIP
Extract images from a PDF file. Passes through each page, goes through the content stream and finds instances of both
Insert image to PDF
Adds image to a specific page of a PDF. xPos and yPos define the upper left corner of the image location, and width
Advanced splitting
Advanced PDF split example: Takes into account optional content - OCProperties (rarely used)
Split PDF
Basic PDF split example: Splitting by page range
Rotate page
Rotate pages in a PDF file. Degrees needs to be a multiple of 90
Page info
Prints PDF page info: Mediabox size and other parameters
Advanced merging
For a more basic merging of PDF page contents, see pdf_merge.go
Merge PDFs
Simply loads all pages for each file and writes to the output file.
Crop pages
Demonstrates how to crop the MediaBox of a page in a PDF document using UniPDF.
Generate PDF reports
Demonstrates many of the common components used when creating a PDF report with UniPDF. Great starting point for creating advanced reports.
bottom of page