This project is read-only.

Not asked for password while opening the pdf file

Jul 9, 2014 at 10:52 AM
Edited Jul 9, 2014 at 10:52 AM
I used the following code. I was not asked with the password when I open the hello.pdf. Do I need to configure anything else? Is OwnerPassword meant for the password that will be asked while opening the file?
        var pdfRenderOptions = new PdfRendererOptions();
        pdfRenderOptions.Author = "XXXXX";
        pdfRenderOptions.Title = "Hello World";
        pdfRenderOptions.Subject = "Hello World";
        pdfRenderOptions.EnableModify = false;
        pdfRenderOptions.EnableAdd = false;
        pdfRenderOptions.EnableCopy = false;
        pdfRenderOptions.EnablePrinting = true;

        pdfRenderOptions.OwnerPassword = "hello";

        var driver = FonetDriver.Make();
        driver.Options = pdfRenderOptions;
        driver.Render("", "hello.pdf");
Jul 9, 2014 at 11:19 AM
Edited Jul 9, 2014 at 11:20 AM
Now I am able to get the password popup while opening the pdf file. Need to set options.UserPassword. But I dont understand the owner password. Can anyone give more explanation on OwnerPassword?