Welcome GuestLogin

PDFsharp and MigraDoc Wiki

RSS RSS

Navigation




Quick Search
»

PoweredBy

Visit the new Website for PDFsharp & MigraDoc Foundation 6.0 for .NET 6 and find information about the new version for Windows, Linux, and other platforms.

Search Engine

Here you can search through the pages of this Namespace, their attachments and the files uploaded to the system.
Note: the results will only display the items you have permissions to read.



Filter by Category

Select allNoneInvert










This search, performed through 421.52 KB (73 documents, 3477 words), completed in 0.0 seconds and yielded 30 results.

PDFsharp 1.30 Folders — 18.3%

[...] XGraphicLab-WPF see XGraphicsLab-WPF help a !ReadMe.txt that refers to Help samples contains the sample projects fonts some fonts used for demonstrating font embedding PDFs some PDF files used in sample code Samples C# sample applications written in C# Based on GDI+ sample applications using the GDI+ build of PDFsharp Annotations GDI+ build of Annotations sample Booklet GDI+ build of Booklet sample [...]

MigraDoc 1.30 Folders — 5.3%

[...] development projects of MigraDoc foundation help a !ReadMe.txt that refers to Help samples contains the sample projects Samples C# sample applications written in C# Based on GDI+ sample applications using the GDI+ build of MigraDoc DocumentViewer GDI+ build of Document Viewer sample HelloMigraDoc GDI+ build of Hello MigraDoc sample HelloWorld GDI+ build of Hello World sample Images [...]

PDFsharp Sample: Split Document — 3.3%

^Up Next >> This sample shows how to convert a PDF document with n pages into n documents with one page each. PDF Output File See the PDF files created by this sample: First page: output.pdf (31 kB) Second page: output.pdf (17 kB) Note: the sample creates six pages from the sample document, only two pages are provided here. Screen Shots [...]

PDFsharp Sample: Concatenate Documents — 3.0%

^Up Next >> This sample shows how to concatenate the pages of several PDF documents to one single file. When you add the same external page twice or more, the content of the pages is shared. Each imported page can be individually extended with graphics and text. PDF Output File See the PDF files created by this sample: Variation 1 output.pdf (207 kB) Variation 2 output.pdf (211 kB) Variation 3 output.pdf (208 kB) Variation 4 output.pdf (216 kB) Screen Shots Here is a sample screen shot of Variation [...]

Using MigraDoc without .NET via MDDDL — 3.0%

[...] have to invoke an EXE file that uses MigraDoc to turn the MDDDL file into a PDF file (or RTF file). Sample MDDDL File Here is a simple MDDDL sample, displaying the text "Hello, World!": \document { \section { \paragraph { Hello, World! } } } You can refine this sample as needed, adding attributes to document, section, or paragraph. Or by defining styles. MDDDL does not require line breaks or indentation. Indentation makes it easier for humans to read the file, maintain it, and find errors. Developing [...]

PDFsharp sample: Multiple Pages — 3.0%

^Up Next >> This sample shows one way to create a PDF document with multiple pages. Do we need such a sample? Not really. When you program reaches the end of a page, you just have to create a new page by calling the "AddPage()" method of the PdfDocument class. Then you create a new XGraphics object for the new page and use it to draw on the second page, beginning at the top. Experience shows that users sometimes have difficulties to modify there code with support for a second page. They call "AddPage()", but do not store the return [...]

MigraDoc Sample: Mix MigraDoc and PDFsharp — 2.7%

^Up Next >> This sample demonstrates how to mix MigraDoc and PDFsharp. PDF Output File See the PDF file created by this sample: output.pdf (134 kB) Screen Shots Here is a sample screen shot (showing page 2 with 6 pages from MigraDoc, scaled down to fit on one page): Source Code Creating the Document We create a PdfDocument , not a (MigraDoc) Document : static void Main() { DateTime now = DateTime.Now; string filename = "MixMigraDocAndPdfSharp.pdf"; filename = Guid.NewGuid().ToString("D").ToUpper() [...]

PDFsharp Sample: Unprotect Document — 2.7%

^Up Next >> This sample shows how to unprotect a document (if you know the password). Note: that we will not explain nor give any tips how to crack a protected document with PDFsharp. PDF Output File See the PDF file created by this sample: output.pdf (7 kB) Screen Shots Here is a sample screen shot: Source Code This code shows how to unprotect a document to allow modification: // Get a fresh copy of the sample PDF file. // The passwords are 'user' and 'owner' [...]

MigraDoc Sample: Invoice — 2.7%

^Up Next >> This sample shows how to create a simple invoice of a fictional book store. The invoice document is created with the MigraDoc document object model and then rendered to PDF with PDFsharp. PDF Output File See the PDF file created by this sample: output.pdf (104 kB) Screen Shots Here is a sample screen shot: Source Code Creating the Document Nothing special here: public Document CreateDocument() { // Create a new MigraDoc document this.document = new Document(); this.document.Info.Title [...]

PDFsharp Web Sample: Clock — 2.7%

^Up Next >> This sample shows how to create a PDF document on the fly in an ASP.NET application. For illustration the sample draws an analog clock that displays the current server time. PDF Output File See the PDF file created by this sample: output.pdf (24 kB) Screen Shots Here is a sample screen shot: Live Test on the Web Test the Clock sample: Run Clock on our web server Source Code Here is the framework for an .aspx page that returns [...]

PDFsharp Sample: Work on Pdf Objects — 2.3%

^Up Next >> This sample shows how to deal with PDF objects that are not (yet) covered by specialized PDFsharp classes (as an example it adds an OpenAction to an existing PDF file). PDF documents are based internally on objects like dictionaries, arrays, streams etc. This sample shows how to work directly on these underlying PDF objects. Use this functionality to achieve PDF features that are not yet implemented in PDFsharp. PDF Output File See the PDF file created by this sample: output.pdf (90 kB) [...]

PDFsharp Sample: Watermark — 2.3%

^Up Next >> This sample shows three variations how to add a watermark to an existing PDF file. Note: Technically the watermarks in this sample are simple graphical output. They have nothing to do with the Watermark Annotations introduced in PDF 1.6. PDF Output File See the PDF file created by this sample: Watermark.pdf (112 kB) This sample requires Acrobat Reader [...]

PDFsharp Sample: Private Fonts — 2.3%

^Up Next >> This sample shows how to use fonts that are not installed with Windows. Note: XPrivateFontCollection is no longer supported and no longer recommended. This sample is outdated. Use the IFontResolver interface. Applications that use PDFsharp or MigraDoc 1.50 beta 3b or newer should use the IFontResolver interface. PDFsharp Sample: [...]

PDFsharp Sample: Export Images — 2.3%

^Up Next >> This sample shows how to export JPEG images from a PDF file. Note: This snippet shows how to export JPEG images from a PDF file. PDFsharp cannot convert PDF pages to JPEG files. This sample does not handle non-JPEG images. It does not (yet) handle JPEG images that have been flate-encoded. There are several different formats for non-JPEG images in PDF. Those are not supported by this simple sample and require several hours of coding, but this is left as an exercise to the reader. PDFsharp cannot [...]

PDFsharp Sample: Protect Document — 2.0%

^Up Next >> This sample shows how to protect a document with a password. PDF Output File See the PDF file created by this sample: output.pdf (3 kB) Note: the owner password is "owner". Screen Shots Here are the sample screen shots: Note: Adobe Reader prompts for the password when you try to open the file (remember the secret password is "owner"); when the file is opened, the caption indicates "SECURED". Source [...]

PDFsharp Sample: Page Sizes — 2.0%

^Up Next >> This sample shows a document with different page sizes. Note: You can set the size of a page to any size using the Width and Height properties. This sample just shows the predefined sizes. PDF Output File See the PDF file created [...]

PDFsharp Sample: Two Pages on One — 2.0%

^Up Next >> This sample shows how to place two pages of an existing document on one landscape orientated page of a new document. PDF Output File See the PDF file created by this sample: output.pdf (37 kB) Screen Shots Here is a sample screen shot: Source [...]

PDFsharp Sample: Combine Documents — 2.0%

^Up Next >> This sample shows how to create a new document from two existing PDF files. The pages are inserted alternately from two external documents. This may be useful for visual comparison. Two different techniques are demonstrated: How to import a page from an external document. This technique includes all annotations of the imported page. How to import a page as a PDF form object. This technique treats the pages of external documents like images that can be transformed and placed everywhere. PDF Output File See the PDF files created by this sample [...]

MigraDoc Sample: Document Viewer — 2.0%

[...] and print a MigraDoc document, and convert it to a PDF, RTF, or image file. Screen Shots Here is a sample screen shot: Source Code This sample uses the MigraDoc.Rendering.Forms.DocumentPreview class to create a preview window. The DocumentPreview object receives the document as an MigraDoc DDL string. You can obtain this DDL string from your Document object using the DdlWriter class. Initializing DocumentPreview Here's the constructor: public Viewer() { InitializeComponent(); // Create a new MigraDoc document Document document [...]

MigraDoc Sample: Hello MigraDoc — 2.0%

^Up Next >> This sample shows various features of MigraDoc including table of contents, tables, bookmarks, text formatting and font styles, charts, ... PDF Output File See the PDF file created by this sample: output.pdf (133 kB) Source Code Listing The Main method: static void Main() { // Create a MigraDoc document Document document = Documents.CreateDocument(); //string ddl = MigraDoc.DocumentObjectModel.IO.DdlWriter.WriteToString(document); MigraDoc.DocumentObjectModel.IO.DdlWriter.WriteToFile(document, "MigraDoc.mdddl"); [...]

PDFsharp Sample: Graphics — 2.0%

^Up Next >> This sample shows some of the capabilities of the XGraphics class. You'll find code snippets for the following graphical primitives: Lines and curves Shapes Graphical paths Text and fonts Images and external PDF forms PDF Output File See the PDF files created by this sample: GDI+ version or WPF version Source Code Main programm This is the Main function. It creates a PDF document and adds some sample pages listed below. static void Main() { // Create a temporary file string filename [...]

PDFsharp Sample: Preview — 1.7%

^Up Next >> This sample shows how to render graphics in both a preview and a PDF document. PDF Output File See the PDF file created by this sample: output.pdf [...]

PDFsharp Sample: Font Resolver — 1.7%

^Up Next >> This sample shows how to use fonts that are included with your application. This allows you to use fonts that are not installed on the computer. For tasks running on web servers, private fonts may be the only available fonts. Note: When using the GDI build, you can use the XPrivateFontCollection class. As of PDFsharp 1.50 beta 2, the XPrivateFontCollection class is the recommended way for applications that use the GDI build of PDFsharp and that also use the screen preview or use the XGraphics class to draw on other contexts beside PDF files. PDFsharp [...]

PDFsharp Sample: Unicode — 1.7%

^Up Next >> This sample shows how to use Unicode text in PDFsharp. Languages based on Latin, Greek, or Cyrillic letters should all work with PDFsharp. You'll find code snippets for the following classes: XPdfFontOptions XTextFormatter PDF Output File See the PDF file created by this sample: output.pdf (58 kB) Source Code Drawing the text is [...]

PDFsharp Sample: XForms — 1.7%

^Up Next >> This sample shows how to create an XForm object from scratch. You can think of such an object as a template, that, once created, can be drawn frequently anywhere in your PDF document. PDF Output File See the PDF file created by this sample: output.pdf (3 kB) Screen Shots [...]

PDFsharp Sample: Text Layout — 1.7%

^Up Next >> This sample shows how to layout text with the TextFormatter class. TextFormatter is new since PDFsharp 0.9 and was provided because it was one of the "most wanted" features. But it is better and easier to use MigraDoc to format paragraphs... PDF Output File See the PDF file created by this sample: output.pdf [...]

PDFsharp Sample: Annotations — 1.7%

^Up Next >> This sample shows how to create PDF annotations. PDFsharp supports the creation of the following annotations: Text annotations Link annotations Rubber stamp annotations PDF Output File See the PDF file created by this sample: output.pdf (3 kB) Note: the red rubber stamp shows localized resources of Adobe Reader or placeholder if the resource cannot [...]

PDFsharp Sample: Colors CMYK — 1.7%

^Up Next >> This sample shows how to use CMYK colors. PDF Output File See the PDF file created by this sample: output.pdf [...]

PDFsharp Sample: Bookmarks — 1.7%

^Up Next >> This sample shows how to create bookmarks. Bookmarks are called outlines in the PDF reference manual, that's why you deal with the class PdfOutline. Acrobat uses the term “bookmark” in its English version and “Lesezeichen” in the German version. PDF Output File See the PDF file created by this sample: output.pdf [...]

MigraDoc Sample: Images — 1.7%

^Up Next >> This sample shows how to use images in MigraDoc documents. PDF Output File See the PDF file created by this sample: output.pdf [...]



Visit the new Website for PDFsharp & MigraDoc Foundation 6.0 for .NET 6 and find information about the new version for Windows, Linux, and other platforms.



Miscellaneous
Home
PDFsharp
FAQ
Samples
Articles
MigraDoc
FAQ
Samples
Articles

ScrewTurn Wiki version 3.0.5.600. Some of the icons created by FamFamFam.

Impressum - Privacy Policy, Data Protection Declaration, Legal Notice