Hi Tushar,
Currently, Aspose.Pdf.Kit doesn’t allow to convert a PDF to PDF/A compliant file either. We’ll definitely have to have some mechanism to validate whether it is already a PDF/A compliant file or not. And after that we’ll convert it to PDF/A compliant file if required. So, we’ll first provide the validation feature.
If you have any further questions, please do let us know.
Regards,
Thanks Amjad
Thanks Shahzad, I hope to get this method soon.
Hi guys,
Any update the pending items.
Thanks and Regards
Tushar Patel
Hi Tushar,
As far as the requirement of validating the PDF files is concerned, I’m afraid, we’re unable to share the ETA at the moment. Our team is currently investigating this requirement and I have asked the development team to share the ETA. You’ll be updated with the estimate via this thread once we get some clear idea of the requirement.
We’re sorry for the inconvenience.
Regards,
Muhammad,
Any update on Infopath to PDF/A conversion.
Regards
Tushar Patel
Hi Tushar,
Hi,
I have got the requirment and have following questions. I know answers of few of them but need to clarify my understanding.
1. Is it possible to convert following type of file to PDF/A and if yes how:
2. Is it possible to check if the pdf file is already converted to PDF/A? We don’t want to try converting the document if it is already converted.
- dot
- htm
- idx
- mht
- msg
- png
- txt (I assume using Aspose.words)
3. For the Excel spreadsheet, is it possible to save the Print preview version as PDF/A. This is because, the excel spreadsheet which we are using has got build in macros and converted the 2 page document to 14 pages.
Also, can you please give me some idea when are you expecting the existing issues to be fixed
1. FORMNET-18090 to provide support for PDF/A
2. FORMNET-18091 to provide an API to convert InfoPath forms to PDF/A without loading them into XmlFormView control.
Thanks and Regards
Tushar Patel
Hi Tushar,
FORMNET-18090 and FORMNET-18091 are not analyzed yet because the developers are working on some other priority features. We will share the ETA as soon as these features get analyzed by the developers.
We are sorry for the inconvenience.
Best Regards,
Hi Tushar,
I would like to comment on your requirement in the second point. In fact, this feature is currently not supported and is already logged as PDFKITNET-11313 in our issue tracking system. Once this feature is supported, you’ll be able to validate the PDF files for PDF/A compliance. I’m afraid, this might take some time, however you’ll be updated via this forum thread once it is supported in Aspose.Pdf.Kit.
We’re sorry for the inconvenience.
Regards,
Shahzad,
My question no.2 was not related to PDF/A compliance check. Once you have converted a file into PDF/A, I assume the extension will be .Pdf. So, is there any way to differenciate between PDF and PDF/A. This is because I don’t want to do the conversion again if it is already converted to PDF/A.
I hope my question is clear.
Thanks and Regards
Tushar Patel
Hi Tushar,
This is exactly what this feature is going to provide you; you’ll be able to find whether a particular PDF is a PDF/A file or not. I’m afraid, the file extension for PDF and PDF/A, or other PDF standards for that matter, is the same; the only difference is in the internal implementation, so you would be able to call a method to find out whether it is a PDF/A file or not.
I hope this helps. If you have any further questions, please do let us know.
Regards,
Shahzad,
That’s fine.
I understand that you may have different priority issues but any idea about when this will be implemented would be great as this will impact my project delivery.
Thanks and Regards
Tushar Patel
Hi Tushar,
Our team still needs to investigate this requirement in detail. I’m afraid, we’re unable to share the ETA at the moment. Nevertheless, I have asked our development team to share the estimate; you’ll be updated via this forum thread once we get a clear picture.
We’re sorry for the inconvenience.
Regards,
Tushar Patel:
1. Is it possible to convert following type of file to PDF/A and if yes how:
- dot
- htm
- idx
- mht
- msg
- png
- txt (I assume using Aspose.words)
// save to stream in MHT format
MemoryStream mhtStream = new MemoryStream();
message.Save(mhtStream, MailMessageSaveType.MHtmlFromat);
// Use Aspose.Words for MHT --> PDF/A
Document doc = new Document(mhtStream);
// convert to PDF. Set PDF/A compliance
PdfOptions pdfOptions = new PdfOptions();
pdfOptions.Compliance = PdfCompliance.PdfA1b;
doc.SaveToPdf(0, doc.PageCount, "test.pdf", pdfOptions);
Thanks Saqib,
Any idea about other file types
Regards
Tushar Patel
Saqib,
I have used the code given by you for converting msg to pdf/a. The file was converted to PDF/A but has got Message header details and some junk characters after the end. This junk stuff is about 16 pages. The actual file should be only 2 page.
Can you please let me know if this is an issue?
I was wondering if you or any of your team member have any information on how to convert other type of file.
I have already tried the following so far:
.dot (Works with Aspose.words)
.htm (Works with Aspose.words)
.idx ----Not sure about this file type
.png --- Not sure how to convert this into pdf/A
.txt - While testing, I used Aspose.words to load the .txt and it gave me error "Unknow File Type", but when I save the msg file to .txt and then opened it using Aspose.Words, there was not error and I was able to convert the file into PDF/A.
Lastly, Can you let me know how to convert PDF to PDF/A
Thanks and Regards
Tushar Patel
Hi Tushar,
I would like to update you regarding PDF to PDF/A conversion. I’m afraid, this feature is currently not supported. However, we have already logged a new feature request as PDFKITNET-10208 in our issue tracking system. You’ll be updated via this forum thread once it is supported in future version of Aspose.Pdf.Kit. I would also like to add that this feature can only be provided in Aspose.Pdf.Kit, because this is the component which deals with existing PDF files.
Regards,
Hi Tushar,
- .idx – is not supported by any Aspose component
- .png – You may use Aspose.Pdf for .NET to create a new PDF document and insert the PNG image(s). Please refer to http://www.aspose.com/documentation/.net-components/aspose.pdf-for-.net/use-image-from-local-disk.html for details. And http://www.aspose.com/documentation/.net-components/aspose.pdf-for-.net/how-to-create-pdfa1-with-aspose-pdf.html for PDF/A compliant documents.
Saqib,
I have attached the generated Pdf file along with the msg file in the zip.
I have used the code give earlier.
Do you have any update on the .txt, is it a issue with the Aspose.words or I need to converted that using some other control.
Thanks and Regards
Tushar Patel