C1FlexViewer Export()

Originally Posted 30 January 2017, 4:36 pm EST

  • Originally Posted 30 January 2017, 4:36 pm EST

    Hi,
    is there a way to bypss the .Export method and let me choose the name, format and so on about the pdf i'm viewing?
    Something like
    c1FlexViewer1.Export(<filename>,ExportFormat)

    The UI atm is quite useful 'cause forces me to insert info i already have progrgamatically.
    Thanks

    Regards,
    Fabio
  • Marked as Answer

    Reply

    Found...

    Public Function DestructurePDF(ByVal FileName As String) As List(Of String)
    Dim Res As New List(Of String)
    Dim tmpC1PdfDS As New C1PdfDocumentSource

    tmpC1PdfDS.DocumentLocation = FileName

    Dim tmpC1FlexVP As New C1FlexViewerPane
    tmpC1FlexVP.DocumentSource = tmpC1PdfDS

    Dim Filtro As New TiffFilter
    With Filtro
    .FileName = Path.GetTempFileName
    .Preview = False
    .Resolution = 300 '600
    .ShowOptions = False
    tmpC1FlexVP.DocumentSource.Export(Filtro)
    Res = .OutputFiles
    End With

    Return Res

    End Function
Need extra support?

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

Learn More

Forum Channels