C1PdfDocumentSource error on Export

Posted by: john.burke on 16 April 2018, 4:21 pm EST

    • Post Options:
    • Link

    Posted 16 April 2018, 4:21 pm EST

    an error is raised when I attempt to export 1 page from the attached .pdf

    The Error is “The method or operation is not implimented.”

    The AttachmentPath is a string of the Full Path to the .PDF

    The Pages parameter is a string with the value “1”

            Dim C1PdfDocumentSource As C1.Win.C1Document.C1PdfDocumentSource
            Dim PdfFilter As C1.Win.C1Document.Export.PdfFilter
            Dim TempFilePath As String = Nothing
    
                C1PdfDocumentSource = New C1.Win.C1Document.C1PdfDocumentSource()
                PdfFilter = New C1.Win.C1Document.Export.PdfFilter()
    
                    TempFilePath = System.IO.Path.Combine(System.IO.Path.GetTempPath(), "AttachmentPages.PDF")
                    If System.IO.File.Exists(TempFilePath) Then System.IO.File.Delete(TempFilePath)
    
                    C1PdfDocumentSource.LoadFromFile(AttachmentPath)
                    PdfFilter.FileName = TempFilePath
                    PdfFilter.Range = New C1.Win.C1Document.OutputRange(Pages)
                    C1PdfDocumentSource.Export(PdfFilter)
                    C1PdfDocumentSource = Nothing
    

    The error is raised on the .Export method.

    John

  • Posted 16 April 2018, 4:22 pm EST

    Attached file

  • Posted 17 April 2018, 7:25 am EST

    Hello John,

    We received your pdf through the SupportOne case.

    We could observe the issue at our end as well. We have escalated it to the concerned team [Internal Tracking ID: 317680] and will get back to you once we hear from them.

    Best Regards,

    Esha

  • Posted 18 April 2018, 5:31 am EST

    Hello John,

    As per the team, there were breaking changes in C1PdfDocument since 248 build.

    Now, C1PdfDocumentSource does not support PDF export. The list of supported exporters can be obtained using C1PdfDocumentSource.SupportedExportProviders property. NotImplementedException will be thrown if PdfExporter will be used with C1PdfDocumentSource.

    Please share your use-case as per which, you wish to export a pdf document to pdf file. This will help us understand the scenario and help you with a possible alternative.

    Thanks,

    Esha

Need extra support?

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

Learn More

Forum Channels