Free Support Forum - aspose.com

Can we use Aspose.Cells to generate PDFA1A compliant PDF?

Hi,

We have license for Aspose.Cells and we need to generate PDFA1A which is compliant to accessibility like Tab order, Tagged content etc? I see only the below option.

PdfSaveOptions saveOption = new PdfSaveOptions();

saveOption.Compliance = Aspose.Cells.Rendering.PdfCompliance.PdfA1b;

Regards,

Bhupesh.

Hi,

Thanks for your posting and using Aspose.Cells for .NET.

Yes, the code is correct. If you want to save the xls/xlsx file into PDF with Pdf compliance, please use the following code.

C#


//Instantiate new workbook

Workbook workbook = new Workbook();


//Insert a value into the A1 cell in the first worksheet

workbook.Worksheets[0].Cells[0, 0].PutValue(“Testing PDF/A”);


//Define PdfSaveOptions

PdfSaveOptions pdfSaveOptions = new PdfSaveOptions();


//Set the compliance type

pdfSaveOptions.Compliance = PdfCompliance.PdfA1b;


//Save the file

workbook.Save(“e:\test\pdf_a_compliance.pdf” , pdfSaveOptions);

What is the default PDF Compliance set by ASPOSE if I don't set anything in the code?

Workbook workbook = new Workbook();


//Insert a value into the A1 cell in the first worksheet

workbook.Worksheets[0].Cells[0, 0].PutValue("Testing PDF/A");


//Define PdfSaveOptions

PdfSaveOptions pdfSaveOptions = new PdfSaveOptions();


//Save the file

workbook.Save("e:\\test\\pdf_a_compliance.pdf" , pdfSaveOptions);

Hi,

Thanks for your posting and using Aspose.Cells for .NET.

When you don’t specify the Compliance settings, the output PDF (generated by Aspose.Cells) would be PdfCompliance.None.

Is there a way to generate PDF A1A using aspose.cells? I see only None and PDF A1B as options.

Hi,


Thanks for your posting and using Aspose.Cells for .NET.

We are afraid, currently Aspose.Cells
does not support rendering to PDF/A-1a compliance.

We have already
logged a ticket for it with an id “CELLSNET-41365” for your feature
request. Your request has already been linked to the appropriate issue
(“CELLSNET-41365”).

Once we have any update on it, we will let you know here.
Hi,

Please try our latest version/fix: Aspose.Cells for .NET v17.4.1:

Aspose.Cells for .NET v17.4.1 (.NET 2.0) compiled in .NET Framework 2.0.
Aspose.Cells for .NET v17.4.1 (.NET 4.0) compiled in .NET Framework 4.0.
(Note: please choose any of the fixes for your underlying .NET framework version).

We have supported PDF/A-1a in it.
e.g
Sample code:

Workbook wb = new Workbook(srcFile);

PdfSaveOptions pdfOpt = new PdfSaveOptions();

pdfOpt.Compliance = PdfCompliance.PdfA1a;

wb.Save("outFile.pdf", pdfOpt);

Let us know your feedback.

Thank you.

The issues you have found earlier (filed as CELLSNET-41365) have been fixed in Aspose.Cells for .NET 17.5.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.
(2)