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 3 results.
[...] document to allow modification:
// Get a fresh copy of the sample PDF file.
// The passwords are 'user' and 'owner' in this sample.
const string filenameSource = "HelloWorld (protected).pdf";
const string filenameDest = "HelloWorld_tempfile.pdf";
File.Copy(Path.Combine("../../../../../PDFs/", filenameSource),
Path.Combine(Directory.GetCurrentDirectory(), filenameDest), true);
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);
}
[...]
[...] "Doc1" does not change the page margins, but "Doc2" changes the page margins and the orientation.
If the user creates "Doc1" first, it will have the default margins. If the user [...]
[...] the security level to
// PdfDocumentSecurityLevel.Encrypted128Bit.
securitySettings.UserPassword = "user";
securitySettings.OwnerPassword = "owner";
[...]