Security options are not working

Posted by: mayur.purandare on 20 January 2019, 5:16 pm EST

    • Post Options:
    • Link

    Posted 20 January 2019, 5:16 pm EST

    Dear team,

    I am applying below options while creating pdf files:

    • pdf.Security.AllowCopyContent = false;

    • pdf.Security.AllowEditAnnotations = false;

    • pdf.Security.AllowEditContent = false;

    • pdf.Security.AllowPrint = false;

    I have tried with both libraries c1.pdf and c1.wpf.pdf but it is not working.

    I am still able to copy content are print file.

  • Posted 21 January 2019, 5:37 pm EST

    Hello Mayur,

    I used the attached application with the latest C1 builds but could not observe the issue. The attached video shows the scenario observed at my end.

    Kindly test the sample and if the issue persists, modify and share it back so that I can observe the issue and assist you further.

    Regards,

    Esha

    C1Pdf_Security.zipmov_C1Pdf_Security.zip

  • Posted 6 February 2019, 10:50 pm EST

    Thanks for the reply.

    I was using same password for user password and owner password that is why issue was coming.

    I have one query regarding security.

    Can we Embed digital signature in PDF?

  • Posted 6 February 2019, 10:50 pm EST

    Thanks for the reply.

    I was using same password for user password and owner password that is why issue was coming.

    I have one query regarding security.

    Can we Embed digital signature in PDF?

  • Posted 7 February 2019, 5:01 pm EST

    Hello,

    Yes, this is possible using PdfSignature class.

    Please refer the sample “PdfSignature” shipped along with ComponentOne suite. On your machine with C1 installed, it should be at the default location: C:\Users[UserName]\Documents\ComponentOne Samples\WinForms\C1Pdf\CS\PdfSignature

    I have also attached the same for your reference.

    Hope it helps.

    Best Regards,

    Esha

    PdfSignature.zip

  • Posted 13 March 2019, 8:54 pm EST

    Hello,

    I have Component One WPF edition installed.So is PdfSignature part of C1.WPF or it is WInforms only?

  • Posted 13 March 2019, 8:54 pm EST

    Hello,

    I have Component One WPF edition installed.So is PdfSignature part of C1.WPF or it is WInforms only?

  • Posted 14 March 2019, 3:47 pm EST

    Hello,

    C1Pdf and C1PdfViewer for WPF does not support digital signatures. However, you can set passwords with C1Pdf for WPF using the “Security object”. Following is the sample code that can be used :

    myPdf.Security.OwnerPassword ="zzzz";
    myPdf.Security.UserPassword ="xxx";
    
    

    Regards,

    Esha

  • Posted 14 March 2019, 4:33 pm EST

    I want to have Digital signature for pdf security and I have installed c1.wpf.pdf installed. Can I use Digital signature in C1.wpf.pdf edition library.

  • Posted 14 March 2019, 4:52 pm EST

    Hello,

    C1Pdf for WPF does not support digital signatures.

    WinForms version of the controls can be used for the same.

    Regards.

  • Posted 25 March 2019, 3:18 pm EST

    So to use Digital signature Do I need to buy licence for whole WinForm edition Or only Digital signature component can be purchased?

  • Posted 25 March 2019, 8:30 pm EST

    Hello,

    You would need a license for the entire WinForms edition to use the C1Pdf control for WinForms.

    I would also like to introduce to you “Grapecity Documents for PDF” that is a part of GrapeCity Documents that handles majority of the PDF related needs. The extensive library is supported on .NET Standard 2.0 can be used to read, create, modify and save PDF files without using any external tool like Adobe Acrobat.

    You can learn more about the same from here:

    https://www.grapecity.com/en/documents-api-pdf

    http://help.grapecity.com/gcdocs/gcpdf/onlinehelp/webframe.html#Overview.html

    You can use Digital Signatures with GcPdf as well. This has been illustrated here:

    https://demos.componentone.com/gcdocs/gcpdf/Samples/List#SignDoc/codeCS

    Kindly contact our sales team for further license related information. They might be able to assist you better in this regard: https://www.grapecity.com/en/contact

    Regards,

    Esha

  • Posted 3 April 2019, 6:49 pm EST

    Thanks for the reply.

    Can we apply Watermark to PDF document using C1.pdf.

  • Posted 4 April 2019, 3:15 pm EST

    Hi,

    No, watermarks cannot be added to a pdf using C1Pdf. However, this can be done using GcPdf. The below mentioned blog shows the comparison between the two controls :

    https://www.grapecity.com/en/blogs/pdf-for-dot-net-migrating-from-c1pdf-to-gcpdf

    Thanks.

  • Posted 26 June 2019, 10:59 pm EST - Updated 3 October 2022, 11:03 pm EST

    We have upgraded our wpf license to Component One Studio - Enterprise Edition so that we can include digital signature feature.

    But still I am getting component one evaluation version popup message as shown in below screenshot.

    Do we need to perform any other steps to include digital signature.

  • Posted 27 June 2019, 5:40 pm EST

    Hello,

    The evaluation message pop up appears in the following two cases:

    1. Your system does not have a valid license key for the controls.
    2. The entries of the licenses.licx file do not match with the controls used in the application.

    If you are using the builds from your licensed version, this screen will be visible because of the second case mentioned above. It may be due to the licenses file not existing in the application, containing wrong information, or not being configured correctly.

    First, try a full rebuild (Rebuild All from the Visual Studio Build menu). This will usually rebuild the correct licensing resources.

    The entry for every C1 control used in the application at design time or run time should be present in the licenses.licx file of the project. You may want to add this entry related to C1Pdf to your licenses.licx file:

    C1.C1Pdf.C1PdfDocument, C1.C1Pdf.4 
    
    

    You can also use the LicxGenerator to generate a licenses.licx file for your application. You can learn more about the same using the below mentioned blog post:

    https://www.grapecity.com/en/blogs/licensing-and-licenses-licx-file-licxgenerator-tool/

    If this does not solve your problem, I request you to share the below mentioned details:

    1. (Please do not share the key over forums. You can send the same by creating a ticket on SuuportOne: https://supportone.componentone.com) The license key you are using on this machine. It can be obtained by:

      Running the C1LicenseDeActivation utility (at the default location: Local Disk (C:)/Program Files(x86)/ComponentOne/C1StartMenu/Activation) and then on the “?” that appears next to the Serial Number.
    2. The entries in your licenses.licx file

    Best Regards,

    Esha

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels