Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 99250

Export from RadFixedDocument to Stream

$
0
0

Hi, any news about split PDFs ? I install the 2016.3.1018 and add blank pages.

Thanks

Dim Provider1 As New Pdf.PdfFormatProvider
Dim Stream1 As Stream = File.OpenRead(ArqPDF)
Dim Doc1 As RadFixedDocument = New Pdf.PdfFormatProvider(Stream1, FormatProviderSettings.ReadOnDemand).Import()
 
Try
    Dim P As Integer = 1
    Do While Doc1.Pages.Count > 0
        Dim Provider2 As New Pdf.PdfFormatProvider
        Dim ArqPDF2 As String = "c:\temp\Pag" & Format(P, "0####") & ".pdf"
        Dim Stream2 As Stream = File.OpenWrite(ArqPDF2)
        Dim Doc2 As New RadFixedDocument
        Dim PagPDF As RadFixedPage = Doc1.Pages(0)
        Doc1.Pages.Remove(PagPDF)
        Doc2.Pages.Add(PagPDF)
        Provider2.Export(Doc2, Stream2)
        Stream2.Close()
        P = P + 1
    Loop
Catch ex As Exception
End Try

Viewing all articles
Browse latest Browse all 99250

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>