> For the complete documentation index, see [llms.txt](https://docs.apryse.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.apryse.com/core/create/create.md).

# PDF Generation Library on Server/Desktop

Create new documents programmatically with our template generator.

Document creation can be as simple as a blank PDF, or part of capturing content and combining it with a template PDF to streamline a report process, or a document whose structure your application computes at runtime. With the Document Creation API, create an end to end PDF.

With the Apryse Server SDK doc creation API:

* Create new documents from scratch or use existing documents as templates.
* Copy page content (individual graphical elements) from one page to another.
* Read/Write a PDF document from/to memory buffer or a file on a disk.
* Create new text, vector art, and images.
* Perform quick image embedding for TIFF, JPEG, and PNG.
* Support Type1, OpenType, TrueType, Type3, and CID Font embedding for accurate text reproduction.
* Support Unicode text and standard PDF encodings.
* Have dynamic font subsetting resulting in smaller files.
* Have full control over text positioning and character spacing.
* Support all PDF color spaces and advanced pre-press options.
* Have full control over content positioning and all graphical attributes available in PDF.
* Support PDF patterns (colored and uncolored tiling patterns) and shadings (7 types).
* Support image masks.
* Reuse resources such as images, fonts and color spaces through object sharing resulting in smaller and more efficient documents.
* Have intelligent element serialization resulting in small and efficient content streams.
* Support explicit and named destinations. Named destinations allow for changes to the document that will not invalidate existing bookmarks.
* Have extensive bookmark creation and editing API.
* Create PDF documents with 3D content (U3D support).
* Apply security to new documents.
* Have linearization (Fast Web View).

The [document creation API](/core/create/document-creation-api.md) adds flow layout:

* Describe a document as a content tree of paragraphs, tables, lists, shapes, charts and floats, instead of positioning every element on a page.
* Automatic pagination, text wrapping, and content that breaks across pages.
* Word-processor styling with fonts, colors, indents, justification, borders and tab stops.
* Sections that mix page sizes and orientations, with headers, footers and dynamic page numbers.
* Tagged, accessible PDF output by construction.

Use cases include:

* **Invoice generation at volume:** Company branding, line-item tables, page numbers, payment information, metadata, and configured page size and margins.
* **Analytics and business reports:** Structured content, charts or chart-like visual elements, branded headers, landscape pages, and custom page numbering.
* **Contracts and proposals:** Logos, hyperlinks to terms or support, disclaimers in footers, shapes used as signature placeholders, metadata, and multi-page layout.
* Statements, dashboards, labels, and other dynamically generated documents produced from operational systems, CRMs, ERPs, billing systems, and reporting tools.
* OEM teams embedding the SDK in their own product and needing programmatic PDF generation as part of it.

## Get started

* [Generate from Template](/core/create/generate-via-template.md) to create a new document from a Template.
* [Document creation API](/core/create/document-creation-api.md) to build a document from a content tree and paginate it into a PDF.
* [Create a new blank PDF document](/core/create/blank.md) to create a new document as a blank PDF.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.apryse.com/core/create/create.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
