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.
This search, performed through 421.57 KB (73 documents, 3477 words), completed in 0.0 seconds and yielded 8 results.
[...]
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, [...]
[...] (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 = [...]
[...] imports the whole page including the hyperlinks.
// Open the input files
PdfDocument inputDocument1 = PdfReader.Open(filename1, PdfDocumentOpenMode.Import);
PdfDocument inputDocument2 = PdfReader.Open(filename2, [...]
[...] Path.Combine(Directory.GetCurrentDirectory(), filename), true);
// Open the file
PdfDocument inputDocument = PdfReader.Open(filename, PdfDocumentOpenMode.Import);
[...]
[...] shows how to add an OpenAction:
// Read document into memory for modification
PdfDocument document = PdfReader.Open(filename);
// The current version of [...]
[...] Code
This is the source code the shows how to set the color mode to CMYK:
PdfDocument document = PdfReader.Open(filename);
document.Options.ColorMode [...]
[...] the work:
const string filename = "../../../../../PDFs/SomeLayout.pdf";
PdfDocument document = PdfReader.Open(filename);
int imageCount = 0;
// Iterate [...]
[...]
// Open an existing document. Providing an unrequired password is ignored.
PdfDocument document = PdfReader.Open(filenameDest, "some text");
PdfSecuritySettings [...]