Welcome GuestLogin

PDFsharp and MigraDoc Wiki

RSS RSS

Navigation




Quick Search
»

PoweredBy

Visit our new Tailored Solutions & Support site and find out how we can assist you.
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.57 KB (73 documents, 3477 words), completed in 0.0 seconds and yielded 8 results.

PDFsharp Sample: Unprotect Document — 26.7%

[...] PdfDocument document; // Opening a document will fail with an invalid password. try { document = PdfReader.Open(filenameDest, "invalid password"); } catch (Exception ex) { Debug.WriteLine(ex.Message); } // You can specifiy a delegate, which is called if the document needs a // password. If you want to modify the document, you must provide the // owner password. document = PdfReader.Open(filenameDest, PdfDocumentOpenMode.Modify, PasswordProvider); // Open the document with the user password. document = PdfReader.Open(filenameDest, [...]

PDFsharp Sample: Concatenate Documents — 26.7%

[...] (string file in files) { // Open the document to import pages from it. PdfDocument inputDocument = PdfReader.Open(file, PdfDocumentOpenMode.Import); // Iterate pages int count = inputDocument.PageCount; for (int idx = 0; idx /// /// This sample adds each page twice to the output document. The output document /// becomes only a little bit larger because the content of the pages is reused /// and not duplicated. /// static void Variant2() { // Get some file names string[] files = GetFiles(); // Open the output document PdfDocument outputDocument = [...]

PDFsharp Sample: Combine Documents — 13.3%

[...] imports the whole page including the hyperlinks. // Open the input files PdfDocument inputDocument1 = PdfReader.Open(filename1, PdfDocumentOpenMode.Import); PdfDocument inputDocument2 = PdfReader.Open(filename2, [...]

PDFsharp Sample: Split Document — 6.7%

[...] Path.Combine(Directory.GetCurrentDirectory(), filename), true); // Open the file PdfDocument inputDocument = PdfReader.Open(filename, PdfDocumentOpenMode.Import); [...]

PDFsharp Sample: Work on Pdf Objects — 6.7%

[...] shows how to add an OpenAction: // Read document into memory for modification PdfDocument document = PdfReader.Open(filename); // The current version of [...]

PDFsharp Sample: Colors CMYK — 6.7%

[...] Code This is the source code the shows how to set the color mode to CMYK: PdfDocument document = PdfReader.Open(filename); document.Options.ColorMode [...]

PDFsharp Sample: Export Images — 6.7%

[...] the work: const string filename = "../../../../../PDFs/SomeLayout.pdf"; PdfDocument document = PdfReader.Open(filename); int imageCount = 0; // Iterate [...]

PDFsharp Sample: Protect Document — 6.7%

[...] // Open an existing document. Providing an unrequired password is ignored. PdfDocument document = PdfReader.Open(filenameDest, "some text"); PdfSecuritySettings [...]



Visit our new Tailored Solutions & Support site and find out how we can assist you.
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