Easily create and email Adobe PDF documents in UWP
Create dynamic reports or directly output your UI to a PDF format with support for security, compression, outlining, hyper-linking, and attachments. View PDFs using our C1PdfViewer control.
Easily Add Content
The C1PdfDocument class is easy to use: the commands provided for adding content to documents are similar to the ones available in the WinForms Graphics class. If you know how to display text and graphics in WinForms, you already know how to use C1PdfDocument in UWP. Add text, images, lines, rectangles, ellipses, pies, arcs, rounded rectangles, polygons, Bezier curves, and more.
Export Your UI to PDF
Export your Windows 10 UI "as-is" directly to PDF with C1PdfDocument. You can render your entire UI to a PDF in Windows 10 using the native RenderTargetBitmap class with the C1PdfDocument component.
Familiar Syntax Using DrawImage Method
Adding images to PDF documents is easy: all the work is done by the DrawImage method. DrawImage draws a given image at a specified location, and has parameters that provide control over the image alignment and scaling.
Fast Rendering and Compression of Images
Draw, scale, and position images in your documents with one line of code. You can render any regular .NET Image object, including metafiles. C1Pdf also allows multiple levels of compression, giving options for high quality and small file size. Metafiles are parsed and converted into vector graphics commands, so they retain the best possible resolution. If you want to add charts or technical drawings to your document, metafiles are better than bitmap images.
Security and Permissions
If your PDF documents contain sensitive information, you can encrypt them so that only authorized users can access it. The owner of the document and all other users have separate passwords. The user's access can be selectively restricted to allow only certain operations, like viewing, copying, printing, or editing the document.
Most long PDF documents contain an outline structure that is displayed on a pane on the left of the reader. The outline makes it easy to browse through a document's structure and find specific topics. With PDF for UWP, you can build this outline structure by adding outline entries, which are also called bookmarks.
Hyperlinks and Local Links
PDF for UWP provides methods for adding hyperlinks and hyperlink targets to your PDF documents. You can also add local links that take the user to another location within the same PDF document when they're clicked on. This type of link is useful for when you want to implement some type of cross-referencing within the document, like a table of contents or an index.
Attachments can contain any kind of file — including spreadsheets with detailed information that would clutter the main document, multimedia files with movies and sound, sample code, and more. Adding an attachment to your PDF file is easy: simply specify which file you want to attach and what area of the page should contain the attachment. You can also specify the attachment's appearance.
Document Information and Viewer Preferences
With PDF for UWP, you can add metadata to the PDF documents you create. Specify the author, the creation date, keywords, and so on. You can also provide default viewer preferences to be applied when the document is opened in Adobe Reader. Specify the initial page layout and window position, as well as the reader toolbar and menu visibility.