PDF/A conformity

9 posts, 1 answers
  1. JoRoSch
    JoRoSch avatar
    8 posts
    Member since:
    Dec 2011

    Posted 14 Oct 2014 Link to this post

    Hi,
    exported pdf from Telerik.Windows.Documents.Model.RadDocument  with Telerik.Windows.Documents.FormatProviders.Pdf.PdfFormatProvider. Export(RadDocument document, Stream output) seem not be compliant with the PDF/A standard. Those exported pdfs are being konverted to PDF/A when opened with Adobe Reader X or XI which leads to a unwanted save dialog when those pdfs are closed again. When searching the forums for help I found e.g this thread (http://www.telerik.com/forums/pdf-a-iso-standard#beAEQxU83ESRLCawuwGPhQ) which confused me a bit because Steve assumes the export functionality fits the needs of PDF/A while Chavdar points out that PDF/A is currently not supported and that it is not clear when it will. I wanted to attach a example pdf so that you maybe could tell when investigating the file if something is wrong in the RadDocument from which the pdf is produced but uploading pdf is not supported. Can you help by any chance?

    Thanks in advance  Jo
  2. Kammen
    Admin
    Kammen avatar
    312 posts

    Posted 16 Oct 2014 Link to this post

    Hello Jo,

    I think there might be some confusion.

    RadDocument is the base class of the document model used with RadRichTextBox. It can be exported to PDF but the produced document has some limitations, the saving dialog being a part of them. We are not sure what causes this dialog to show, but based on the research we've made I don't think it is because the PDF is not PDF/A compliant. We are planning on further investigating the cause of the behavior and you can track this item in the public portal to be notified about the status of the issue.

    RadPdfProcessing (the product of this forum section) is our newest library that allows the creation of PDF files. It produces better PDF documents. However it still is not PDF/A compliant due to missing features. However, when you create a PDF using RadPdfProcessing, Adobe Reader won't try to modify the file. Making the PDF's PDF/A compliant is also in our backlog and you can upvote the feature and track its development progress here.

    As to the forum thread that you have pointed, it concerns PDF files that are produced by Telerik Reporting.

    Also, the public forums do not allow other attachments than images. If you want to send us some files or a sample project to demonstrate an issue, you can create a new support ticket for the respective product from your Telerik Account.

    I hope this makes things clear. 

    Regards,
    Kammen
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. JoRoSch
    JoRoSch avatar
    8 posts
    Member since:
    Dec 2011

    Posted 19 Nov 2014 in reply to Kammen Link to this post

    Hi, Kammen,
    thank you for your reply. 
    I would like to give it a try with the new RadPdfProcessing but, lazy as I am, don´t want to change so much code to just proof if the change to RadPdfProcessing would solve my problem.
    So: I have a RadDocument. Can I easily convert / transform this into an RadFixedDocument. I tried (of course not an perfect approach but good enough for a quick testing) this:
    byte[] b = PdfFormatProvider.Export(document);<br>                <br>Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.PdfFormatProvider fixedPdfFormatProvider = new Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.PdfFormatProvider();<br>Telerik.Windows.Documents.Fixed.Model.RadFixedDocument radFixedDocument = fixedPdfFormatProvider.Import(b);<br>return fixedPdfFormatProvider.Export(radFixedDocument);
    but that raises an error in the Importline.
    What do I have to do to do it right?

    Thanks in advance & Kind regards  Jo
  4. JoRoSch
    JoRoSch avatar
    8 posts
    Member since:
    Dec 2011

    Posted 19 Nov 2014 in reply to JoRoSch Link to this post

    Hi Kammen, 
    in addition to my last post here´s the stacktrace of the mentioned error:

    Der Index war außerhalb des Arraybereichs.
    Exception: Der Index war außerhalb des Arraybereichs.
    bei Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Model.Types.CrossReferenceEntry.Read(PostScriptReader reader)
       bei Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Model.Types.CrossReferenceTable.Read(PostScriptReader reader, IPdfImportContext context)
       bei Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Import.RadFixedDocumentImportContext.BeginImport(PostScriptReader reader)
       bei Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Import.PdfImporter.Import(Stream input, IPdfImportContext context)
       bei Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.PdfFormatProvider.ImportOverride(Stream input)
       bei Telerik.Windows.Documents.Common.FormatProviders.FormatProviderBase`1.Import(Stream input)
       bei Telerik.Windows.Documents.Common.FormatProviders.BinaryFormatProviderBase`1.Import(Byte[] input)
  5. Answer
    Kammen
    Admin
    Kammen avatar
    312 posts

    Posted 24 Nov 2014 Link to this post

    Hi Joachim,

    The import capabilities of RadPdfProcessing unlike the export one, are still in early stage of development and support only basic scenarios. This is the reason that not every document can be imported correctly. 

    I would like to suggest you to try the new RadFixedDocumentEditor class that can be used to create RadFixedDocument in a flow-like manner. This is the easiest way to evaluate if RadPdfProcessing supports all required scenarios. More information about this editor can be found in this article.

    Regards,
    Kammen
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  6. Olcay
    Olcay avatar
    2 posts
    Member since:
    Aug 2013

    Posted 16 Jan 2015 in reply to Kammen Link to this post

    Hi Kammen,

    Is there any change for the "export to PDF/A compliant format" feature for telerik radeditor?
    Are you planning to publish this feature within next release?

    Thanks in advance,

    Olcay
  7. Deyan
    Admin
    Deyan avatar
    136 posts

    Posted 16 Jan 2015 Link to this post

    Hello Olcay,

    Support for PDF/A in RadPdfProcessing is in our future implementation plans for the some of the following releases. However we cannot give a more specific time frame. By following the feedback item in Telerik's feedback portal, you will be notified via email when its status is changed to "In Development" and "Done".

    As for the export to PDF/A from RadEditor - could you please specify what do you mean by Telerik RadEditor as in our suite for WPF there is no control with that specific name?

    I am looking forward to hearing from you.

    Regards,
    Deyan
    the Telerik team
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  8. Olcay
    Olcay avatar
    2 posts
    Member since:
    Aug 2013

    Posted 16 Jan 2015 in reply to Deyan Link to this post

    Hi Deyan,
    I am talking about the RichTextBox control in WPF suite.
    Is there any other workaround for getting PDF/A compliant document out of RichTextBox control?

    Thanks in advance,

    Olcay
  9. Deyan
    Admin
    Deyan avatar
    136 posts

    Posted 19 Jan 2015 Link to this post

    Hello Olcay,

    We have not yet planned the PDF/A export from RadDocument and we cannot give you a concrete timeframe for the implementation of this feature request.

    As we are intensively working on the RadPdfProcessing's flow to fixed export, we expect in some of the following releases to provide API that supports most of the flow document features as well as PDF/A support. This way in the following releases you will be able to export flow content to pdf either by using RadPdfProcessing's flow API or by generating or importing to a RadFlowDocument with the new RadWordsProcessing library and then export the RadFlowDocument to PDF.

    If you have any other questions or concerns do not hesitate to contact us again.

    Regards,
    Deyan
    the Telerik team
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top