C# Class BitMiracle.Tiff2Pdf.T2P

This is the context of a function to generate PDF from a TIFF.
Mostra file Open project: Core-Techs/TiffLibrary Class Usage Examples

Public Properties

Property Type Description
m_error bool
m_errorHandler MyErrorHandler
m_outputdisable bool
m_outputfile Stream
m_outputwritten int
m_pdf_author byte[]
m_pdf_centimeters bool
m_pdf_colorspace_invert bool
m_pdf_creator byte[]
m_pdf_datetime byte[]
m_pdf_defaultcompression t2p_compress_t
m_pdf_defaultcompressionquality short
m_pdf_defaultpagelength float
m_pdf_defaultpagewidth float
m_pdf_defaultxres float
m_pdf_defaultyres float
m_pdf_fitwindow bool
m_pdf_image_interpolate bool
m_pdf_keywords byte[]
m_pdf_nopassthrough bool
m_pdf_overridepagesize bool
m_pdf_overrideres bool
m_pdf_subject byte[]
m_pdf_title byte[]
m_stream MyStream
m_testFriendly bool

Public Methods

Method Description
T2P ( ) : System
validate ( ) : void
write_pdf ( Tiff input, Tiff output ) : int

Private Methods

Method Description
compose_pdf_page ( ) : void
compose_pdf_page_orient ( T2P_BOX boxp, Orientation orientation ) : void
compose_pdf_page_orient_flip ( T2P_BOX boxp, Orientation orientation ) : void
disable ( Tiff tif ) : void
enable ( Tiff tif ) : void
encodeOctalString ( byte value ) : string
pdf_currenttime ( ) : void
pdf_tifftime ( Tiff input ) : void
process_jpeg_strip ( byte strip, int striplength, byte buffer, int &bufferoffset, int stripCount, int no, int height ) : bool
read_tiff_data ( Tiff input ) : void
read_tiff_init ( Tiff input ) : void
read_tiff_size ( Tiff input ) : void
read_tiff_size_tile ( Tiff input, int tile ) : void
readwrite_pdf_image ( Tiff input ) : int
readwrite_pdf_image_tile ( Tiff input, int tile ) : int
sample_abgr_to_rgb ( byte data, int samplecount ) : int
sample_lab_signed_to_unsigned ( byte buffer, int samplecount ) : int
sample_planar_separate_to_contig ( byte buffer, int bufferOffset, byte samplebuffer, int samplebuffersize ) : void
sample_realize_palette ( byte buffer ) : void
sample_rgba_to_rgb ( byte data, int samplecount ) : int
sample_rgbaa_to_rgb ( byte data, int samplecount ) : int

This functions converts in place a buffer of RGBA interleaved data into RGB interleaved data, discarding A.

strlen ( byte buffer ) : int
tile_collapse_left ( byte buffer, int scanwidth, int tilewidth, int edgetilewidth, int tilelength ) : void

This functions converts a tilewidth x tilelength buffer of samples into an edgetilewidth x tilelength buffer of samples.

tile_is_bottom_edge ( T2P_PAGE tiles, int tile ) : bool
tile_is_right_edge ( T2P_PAGE tiles, int tile ) : bool
writeToFile ( byte data, int size ) : int
writeToFile ( string data ) : int
write_advance_directory ( ) : void
write_pdf_catalog ( ) : int
write_pdf_header ( ) : int
write_pdf_info ( Tiff input ) : int
write_pdf_obj_end ( ) : int
write_pdf_obj_start ( int number ) : int
write_pdf_page ( int obj ) : int
write_pdf_page_content_stream ( ) : int
write_pdf_pages ( ) : int
write_pdf_stream ( byte buffer, int len ) : int
write_pdf_stream_dict ( int len, int number ) : int
write_pdf_stream_dict_end ( ) : int
write_pdf_stream_dict_start ( ) : int
write_pdf_stream_end ( ) : int
write_pdf_stream_length ( int len ) : int
write_pdf_stream_start ( ) : int
write_pdf_string ( byte pdfstr ) : int
write_pdf_trailer ( ) : int
write_pdf_transfer ( ) : int
write_pdf_transfer_dict ( ) : int
write_pdf_transfer_stream ( short i ) : int
write_pdf_xobject_calcs ( ) : int
write_pdf_xobject_cs ( ) : int
write_pdf_xobject_decode ( ) : int
write_pdf_xobject_icccs ( ) : int
write_pdf_xobject_icccs_dict ( ) : int
write_pdf_xobject_icccs_stream ( ) : int
write_pdf_xobject_palettecs_stream ( ) : int
write_pdf_xobject_stream_dict ( int tile ) : int
write_pdf_xobject_stream_filter ( int tile ) : int
write_pdf_xreftable ( ) : int

Method Details

T2P() public method

public T2P ( ) : System
return System

validate() public method

public validate ( ) : void
return void

write_pdf() public method

public write_pdf ( Tiff input, Tiff output ) : int
input BitMiracle.LibTiff.Classic.Tiff
output BitMiracle.LibTiff.Classic.Tiff
return int

Property Details

m_error public_oe property

public bool m_error
return bool

m_errorHandler public_oe property

public MyErrorHandler,BitMiracle.Tiff2Pdf m_errorHandler
return MyErrorHandler

m_outputdisable public_oe property

public bool m_outputdisable
return bool

m_outputfile public_oe property

public Stream m_outputfile
return Stream

m_outputwritten public_oe property

public int m_outputwritten
return int

m_pdf_author public_oe property

public byte[] m_pdf_author
return byte[]

m_pdf_centimeters public_oe property

public bool m_pdf_centimeters
return bool

m_pdf_colorspace_invert public_oe property

public bool m_pdf_colorspace_invert
return bool

m_pdf_creator public_oe property

public byte[] m_pdf_creator
return byte[]

m_pdf_datetime public_oe property

public byte[] m_pdf_datetime
return byte[]

m_pdf_defaultcompression public_oe property

public t2p_compress_t m_pdf_defaultcompression
return t2p_compress_t

m_pdf_defaultcompressionquality public_oe property

public short m_pdf_defaultcompressionquality
return short

m_pdf_defaultpagelength public_oe property

public float m_pdf_defaultpagelength
return float

m_pdf_defaultpagewidth public_oe property

public float m_pdf_defaultpagewidth
return float

m_pdf_defaultxres public_oe property

public float m_pdf_defaultxres
return float

m_pdf_defaultyres public_oe property

public float m_pdf_defaultyres
return float

m_pdf_fitwindow public_oe property

public bool m_pdf_fitwindow
return bool

m_pdf_image_interpolate public_oe property

public bool m_pdf_image_interpolate
return bool

m_pdf_keywords public_oe property

public byte[] m_pdf_keywords
return byte[]

m_pdf_nopassthrough public_oe property

public bool m_pdf_nopassthrough
return bool

m_pdf_overridepagesize public_oe property

public bool m_pdf_overridepagesize
return bool

m_pdf_overrideres public_oe property

public bool m_pdf_overrideres
return bool

m_pdf_subject public_oe property

public byte[] m_pdf_subject
return byte[]

m_pdf_title public_oe property

public byte[] m_pdf_title
return byte[]

m_stream public_oe property

public MyStream,BitMiracle.Tiff2Pdf m_stream
return MyStream

m_testFriendly public_oe property

public bool m_testFriendly
return bool