Skip to content

Use the PDF Document API to create a document with graphics in code.

License

Notifications You must be signed in to change notification settings

DevExpress-Examples/pdf-document-api-generate-document-layout

Repository files navigation

PDF Document API - Generate a Document Layout and a Watermark from Scratch

This example shows the PDF Document Creation API that is used to programmatically generate a document layout.

  • The custom DrawGraphics method draws content inside an empty PDF document.
  • The custom AddWatermark method generates a watermark with custom text and adds it to the created PDF document.

When you launch the app, the file is saved to your Documents folder (%userprofile%/Documents).

The Result.pdf file is an example of a generated PDF document:

The Universal Subscription or Office File API Subscription is required to use this example in production code. Please refer to the DevExpress Subscriptions page for pricing information.

Files to Review

Documentation

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)