"Content copying for Accessibility" option is not present in PdfPermissions

Hi,

I noticed that there is no ability to set “Content copying for Accessibility” permission when converting spreadsheet to PDF. Is it intentionally?

Aspose.Words.dll has PdfPermissions.ContentCopyForAccessibility.

Thanks.

@licenses,

We have understood the requirement but we need to look into it more. We have logged the requirement in our database for investigation… Once, we will have some news for you, we will update you in this topic.

This issue has been logged as

CELLSNET-46220 - Ability to set ContentCopyForAccessibility option while converting spreadsheet to PDF

@licenses,

I think you may try PdfSaveOption.SecurityOptions.ExtractContentPermission Boolean attribute for your needs, see the following sample code:
e.g
Sample code:

.............
  PdfSaveOptions saveOption = new PdfSaveOptions();
  saveOption.SecurityOptions = new Aspose.Cells.Rendering.PdfSecurity.PdfSecurityOptions();
  // Disabling copying/extracting contents permission.
  saveOption.SecurityOptions.ExtractContentPermission = false;
  workbook.Save("e:\\test\\out1.pdf", saveOption); 

See the document for your reference:

Let us know if you need something else, we will check it out as we have already logged a ticket for it.

Hi

Thanks for the suggested workaround.

That is exactly what I use currently while there is no “ContentCopyForAccessibility” option in Aspose.Excel. But this approach has a performance overhead, so I look forward to getting the same functionality in Aspose.Cells.

Thanks.

@licenses

We have recorded your feedback in our database against logged issue. Once there is some news for you, we will let you know by posting in this thread.

@licenses,

Please try our latest version/fix: Aspose.Cells for .NET v18.7.1:
Aspose.Cells for .NET v18.7.1 (.NET 2.0)
Aspose.Cells for .NET v18.7.1 (.NET 4.0)

We added a new API: AccessibilityExtractContent in PdfSecurityOptions class.

Sample code:

    Workbook wb = new Workbook(srcFile); 

    PdfSaveOptions pdfSaveOpt = new PdfSaveOptions(); 
    PdfSecurityOptions securityOptions = new PdfSecurityOptions(); 
    securityOptions.AccessibilityExtractContent = true; 
    pdfSaveOpt.SecurityOptions = securityOptions; 

    wb.Save(outFile.pdf, pdfSaveOpt);

Let us know your feedback.

The issues you have found earlier (filed as CELLSNET-46220) have been fixed in this update. This message was posted using BugNotificationTool from Downloads module by Amjad_Sahi