Skip to main content

DynamicPDF Blog

Practical ideas, product updates, and engineering notes for building better document workflows.

17 posts tagged with "C#"

C# related posts

View All Tags

PrintManager – Setting Advanced Printer Options

· 3 min read
Anil S
Content Creator

The PrintManager for .NET API allows printing of PDF files through any .NET application. The settings accessible to the PrintManager are limited to those exposed through a standard API (such as Win32 or .NET). But a printer may have additional settings that are specific to that printer and are not readily available through a standard API. This means that there could be non-standard features or settings available that vary between printers that are not able to be exposed through the PrintManager API. To remedy this, we have exposed a way to manually save and reuse a specific state of the native printer’s dialog box that when provided to the Printjob will affect that job as if those options where manually selected by a user. A full example on how to accomplish this is outlined below.

Creating PDFs in C# with Outlined or Invisible Text

· 3 min read
Andrew Cochran
Founder and CEO

DynamicPDF Generator has lots of predefined page elements which allow you to easily create different types of content, but you may occasionally have a need to do something that is not available in the API by default. Custom page elements is an easy way to extend the API to achieve these results.

Create AES Encrypted PDFs in C# and VB .NET

· 3 min read
Andrew Cochran
Founder and CEO

We recently released an update that introduces AES-256 bit and AES-128 bit encryption to our .NET PDF creation and merging library. We have offered encryption since 2002, but this was limited to RC4-40 bit and RC4-128 bit security until this release. We have also restructured the API a bit in order to easily accommodate new encryption methods in the future.

Splitting a PDF from .NET (C# Code Provided)

· 3 min read
Anil S
Content Creator

We get a decent amount of people who ask us about dynamically splitting a PDF. Splitting a PDF document using DynamicPDF Merger for .Net is a very simple task. With the few lines of code the document can be split efficiently at the desired page. Use of PdfDocument object allows for efficient reuse of imported PDF document data. If the same PDF needs to be reused in multiple parts of the application, load the PDF into a PdfDocument object and use it where ever needed. Also the PdfDocument object is designed to be thread safe.