Skip to content

Latest commit

 

History

History
40 lines (22 loc) · 2.82 KB

File metadata and controls

40 lines (22 loc) · 2.82 KB

Manage PDF Metadata (ManagePDFMetadata)

Use ImageGear to read and update PDF metadata that provides descriptive and adminstrative information about a PDF.

This sample reads and updates PDF metadata values for standard PDF document information dictionary keys (Author, Created, Creator, Keywords, Modified, Producer, Subject, and Title) before saving the updated PDF to a new file. PDF metadata describes details about the document's content and origin. This metadata is often used by other software to enhance workflows involving PDF documents.

For more information about the ImageGear .NET API, please refer to the ImageGear .NET Online Documentation.

System Requirements

For a list of the system and development software necessary to build and run these samples, please refer to the ImageGear .NET Online Documentation.

Building the Sample

Starting with ImageGear v26.0, ImageGear supports .NET Core.

All samples can be built using Microsoft Visual Studio 2022.

To build this sample:

  1. Open the .sln file in the project directory using Visual Studio 2022.
  2. Select a Solution Configuration (Debug or Release) and an available Solution Platform (x64 or Any CPU).
  3. Build with Build Solution located in the Build menu.

To build this sample under Linux:

  1. Install the Microsoft .NET SDK for your Linux distribution.
  2. Run dotnet build ManagePDFMetadata.sln. By default this will build the Debug Solution Configuration.

Running the Sample

When the sample is built, it produces a console application executable in the bin subdirectory. Run this application by double-clicking the application icon, or run it directly from Command Prompt (cmd.exe), PowerShell, or similar. Note that the working directory must be the same as the directory containing the sample executable in order to find the sample input image and the output directory. The input image(s) and output directory are specified relative to the location of the application in all of these samples.

To run this sample under Linux, run the sample from "bin/Debug/net6.0/" or "bin/x64/Debug/net6.0/" (depending on the solution platform) using ./ManagePDFMetadata.

NOTE: ImageGear .NET runs in evaluation mode if started without a license. In evaluation mode, documents and images will be watermarked when exported or displayed. If you would like to work with a full-featured evaluation of the product, please contact Accusoft at [email protected].

PDF Support in ImageGear .NET

ImageGear .NET is a robust, multi-platform, multi-language PDF solution. For more information on PDF support in ImageGear .NET, please visit us at Accusoft.