C# Class EnterpriseWebLibrary.IO.PdfOps

Contains methods related to PDF documents.
Exibir arquivo Open project: enduracode/enterprise-web-library

Public Methods

Method Description
ConcatPdfs ( IEnumerable inputStreams, Stream outputStream ) : void

Concatenates the specified PDF documents and writes the result to the specified output stream.

CreateBookmarkedPdf ( MemoryStream>.IEnumerable bookmarkNamesAndPdfStreams, Stream outputStream ) : void

Concatenates the specified PDF documents and creates bookmarks to the beginning of each file, specified by the title passed in the Tuple.

Private Methods

Method Description
Test ( ) : void
addBookmarksToPdf ( byte pdf, byte[]>.IEnumerable titleAndPdfs ) : byte[]

Adds a bookmark to the first page of each of the given PDFs in the Tuple's byte array, using the string in that Tuple for the title of the bookmark.

resetFileStream ( ) : void
setShowBookmarksPaneOnOpen ( byte pdf ) : byte[]

Sets the PDF to be showing the Bookmarks pane (document outline) on document open.

Method Details

ConcatPdfs() public static method

Concatenates the specified PDF documents and writes the result to the specified output stream.
public static ConcatPdfs ( IEnumerable inputStreams, Stream outputStream ) : void
inputStreams IEnumerable
outputStream Stream
return void

CreateBookmarkedPdf() public static method

Concatenates the specified PDF documents and creates bookmarks to the beginning of each file, specified by the title passed in the Tuple.
public static CreateBookmarkedPdf ( MemoryStream>.IEnumerable bookmarkNamesAndPdfStreams, Stream outputStream ) : void
bookmarkNamesAndPdfStreams MemoryStream>.IEnumerable Title to write in the bookmark, PDF MemoryStream
outputStream Stream Stream in which to write
return void