PDF File Writer C# Class Library (Version 1. Enhancement: Document links)PDF File Writer is a C# . NET class library allowing applications to create PDF files. Version 1. 1. 9. 1 enhancement: Document links. Introduction. The PDF File Writer C# class library Pdf. File. Writer allows you to create PDF files directly from your . The library shields you from the details of the PDF file structure. To use the library, you need to add a reference to the attached Pdf. File. Writer. dll class library file, add a using Pdf. File. Writer statement in every source file that uses the library and include the Pdf. File. Writer. dll with your distribution. For more details go to 2. Installation. Alternatively, you can include the source code of the library with your application and avoid the need to distribute a separate data link library file. The minimum development requirement is . NET Framework 4. 0 (Visual Studio 2. Version 1. 1. 9. 0 Enhancements. Document links allow PDF document users to click on the link and jump to another part of the document. Adding document links is done in two parts. The destination is defined as a location marker. Location marker must have a unique name, a scope (Local. Dest or Named. Dest), and a location (page and position). The second part is the link location. The two parts can be defined in any order. They are tied together by the name. The name is case sensitive. Many links can point to the same location marker. Named destinations are targets within the PDF document. They are defined with location marker in the same way as document links. The scope has to be set to Named. Dest. When a PDF reader such as Adobe Acrobat opens a PDF document it can open the document while displaying the target in the viewing window. For more details see Section 2. Document Links and Named Destinations. The following features of the Pdf. File. Writer library were modified: web links, video display, audio playing, saving or viewing embedded files. In previous versions of the library web links were supported by Draw. Text method, Text. Box and Pdf. Table classes. VB.NET PDF - PDF Creating. Free PDF creator SDK library compatible with Visual Basic.NET class and able to create PDF in both.NET WinForms and ASP.NET program. From Winnovative Software Solutions: The Winnovative PDF Creator library for.NET 2.0 can be linked into any.NET application, either ASP.NET web sites or Windows. PDFLib - Read and Change PDF files in VB.NET or C# PDFLib is a library written in Visual Basic.NET to read and manipulate PDF files. The library support the latest. Aspose.Pdf is a.NET (C#, ASP.NET, VB.NET) PDF API to create PDF documents from scratch using API or XML. Also convert word and image files to PDF format. Starting with 1. 1. For code samples look at Other. Example. ca and Other. Example. pdf. In particular note table of contents page and page number 7. Version 1. 1. 9. 1 Fix: Add. Location. Marker fix for regions with decimal separator not period. Upgrading from Pdf. File. Writer library prior to 1. Font resource creation was modified from: Font. Resource = new Pdf. Font(Document, Font. Name, Font. Style, Embedded. A free PDF component which enables developers to create, write, edit, convert, print, handle and read PDF files on any.NET applications. This project is created to generate, read, edit and manipulate PDF files in.NET applications with C#, VB.NET. PDF class library to programmatically generate PDFs using 100%.NET code. On the fly PDF creation using C#, VB.NET & ASP.NET. Free Evaluation Version. Font). Font. Resource = Pdf. Font. Create. Pdf. Font(Document, Font. Name, Font. Style, Embedded. Font); In other words, a global . Section 2. 1 Coordinate System. Image: drawing raster (Bitmap) images and vector (Metafile) images. Image Support. Text: drawing text lines and text in columns. Section 2. 3 Language Support. Barcode: support for Barcode 1. Barcode 3. 9, Barcode interleaved 2 of 5, Barcode EAN1. Barcode UPC- A. Section 2. Barcode Support. QR Code: support for two dimensions barcode. Section 2. 8 QR Code Support. Encryption: support for AES- 1. Section 2. 6 Encryption Support. Web Link: Web link interactive support. Section 2. 7 Web Link Support. Bookmark: Support for document outline. Section 2. 9 Bookmark Support. Named Destinations: Support for making Acrobat open the PDF document at a specific page. Section 2. 2. 2 Document Links and Named Destinations. Charts: Support for Microsoft Charting. Section 2. 1. 0 Charting Support. Print to PDF: Create a PDF document from Print. Document process. Section 2. 1. 1 Print. Document Support. Display data tables. Section 2. 1. 2 Data Table Support. Play video files. Section 2. 1. 3 Play Video Files. Play sound files. Section 2. 1. 4 Play Sound Files. Attach data files. Section 2. 1. 5 Attach Data Files. Reorder pages. Section 2. Reorder Pages. PDF document output to a file or to a stream. Section 2. 1. 7 PDF Document Output. PDF document information dictionary. The PDF reader displays this information in the Description tab of the document properties. The information includes: Title, Author, Subject, Keywords, Created date and time, Modified date and time, the Application that produced the file, the PDF Producer. Section 2. 1. 8 Document Information Dictionary. Memory control: Write contents information of completed pages to output file and free unused memory with garbage collector. Memory Control. Draw artwork defined by System. Windows. Media. Path. Geometry class. Input argument can be text string or Path. Geometry class. Section 2. Windows Presentation Foundation WPFTransparency or opaqueness is now available for painting shapes, lines, text and images. Your application can set the alpha component of color for all graphics and text. Section 2. 2. 1 Transparency, Opacity, Alpha Color Component and Blending. Blend. The new library supports the PDF color blending scheme. Blending defines how the color of a new item painted over a previous item is handled. Section 2. 2. 1 Transparency, Opacity, Alpha Color Component and Blending. Creating a PDF is a six steps process. Step 1: Create one document object Pdf. Document. Step 2: Create resource objects such as fonts or images (i. Pdf. Font. or Pdf. Image). Step 3: Create page object Pdf. Page. Step 4: Create contents object Pdf. Contents. Step 5: Add text and graphics to the contents object (using Pdf. Contents methods). Repeat steps 3, 4 and 5 for additional pages. Step 6: Create your PDF document file by calling Create. File method of Pdf. Document. Step 5 is where most of your programming effort will be spent. Adding contents is achieved by calling the methods of Pdf. Contents class to render graphics and text. The contents class has a rich set (about 1. Pdf. Document implements the IDisposable interface to release unmanaged resources. The Create. File method calls Document. Dispose() after the PDF file is created. However, to ensure the release of resources you should wrap the Pdf. Document creation and the final Create. File with either a using statement or a try/catch block./p> The demo program attached to this article is the test program developed to debug the library. The Test. Pdf. File. Writer has six buttons on the main screen. Five buttons to produce examples of PDF files and one button to display all fonts available on your computer. The first button “Article Example” creates the PDF file displayed at the top of this article. Development Guide by Example. As stated before, the Pdf. File. Writer C# class library shields you from the complexities of the PDF file structure. However, good understanding of PDF file is always an advantage. Adobe PDF file specification document available from Adobe website: “PDF Reference, Sixth Edition, Adobe Portable Document Format Version 1. November 2. 00. 6”. It is an intimidating 1. I would strongly recommend reading Chapter 4 Graphics and sections 5. Text chapter 5. If you want to analyze the PDF files created by this project, or if you want to understand PDF file structure in general, you can use the demo program attached to my previous article . This article provides a concise overview of the PDF specifications. PDF File Writer Library General Notes. The PDF coordinate system origin is at the bottom left corner of the page. The X- axis is pointing to the right. The Y- axis is pointing in upward direction. The PDF unit of measure is point. There are 7. 2 points in one inch. The PDF File writer allows you to select your own unit of measure. All methods arguments representing position, width or height must be in your unit of measure. There are two exceptions: font size and resolution. Font size is always in points. Resolution is always in pixels per inch. The PDF File Writer converts all input arguments to points. All internal measurement values and calculations are done with double precision. At the final step when the PDF file is created, the values are converted to text strings. The conversion precision is six digits. The conversion formula used is: if(Math. Abs(Value) < 0. Value = 0. 0. String Result = ((Single) Value). To. String(). 2. 2. Decimal separator. PDF readers such as Adobe Acrobat expect real numbers with a fraction to use period as the decimal separator. Some of the world regions use other decimal separators such as comma. Since Version 1. 1 of the PDF File Writer library will use period as decimal separator regardless of regional setting of your computer. The PDF File Writer library supports most of the fonts installed on your computer. The only exception is device fonts. The supported fonts follow the Open. Type font specifications. More information is available at Microsoft Typography - Open. Type Specification. The text to be drawn is stored in a String made of Unicode characters. The library will accept any character (0 to 6. Every character is translated into a glyph. The glyphs are drawn on the page left to right in the same order as they are stored in the string. In reality, all font files support only a subset of all possible Unicode characters. If the input String contains unsupported glyphs, the PDF reader will display the . Normally it is a small rectangle. The test program attached to this article has a . If you click it you can see all available fonts on your computer and within each font all available characters. If the language of your project is a left to right language and each character is translated into one glyph and the glyph is defined in the font, the result should be what you expect. If the result is not what you expect, here are some additional notes: Unicode control characters. Unicode control characters are used to control the interpretation or display of text, but these characters themselves have no visual or spatial representation. The PDF File writer does not identify these characters. The library assumes that every character is a display character. They will be displayed as undefined character. Right to left language. Normally the order of characters in a text string is the order a person would read them. Since the library draws left to right the text will be written backwards.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2016
Categories |