|
pdfmm 0.9.20
|
Public Member Functions | |
| PdfFilteredDecodeStream (PdfOutputStream &outputStream, const PdfFilterType filterType, bool ownStream, const PdfDictionary *decodeParms=nullptr) | |
| void | WriteImpl (const char *buffer, size_t len) override |
| void | Close () override |
Public Member Functions inherited from mm::PdfOutputStream | |
| void | Write (const char *buffer, size_t len) |
| void | Write (const std::string_view &view) |
| virtual void | Close ()=0 |
Create a filter that is a PdfOutputStream.
All data written to this stream is decoded using a filter and written to another PdfOutputStream.
The passed output stream is owned by this PdfOutputStream and deleted along with it (optionally, see constructor).
|
inline |
Create a filtered output stream.
All data written to this stream is decoded using the passed filter type and written to the passed output stream which will be deleted by this PdfFilteredDecodeStream if the parameter bOwnStream is true.
| outputStream | write all data to this output stream after decoding the data. The PdfOutputStream is deleted along with this object if bOwnStream is true. |
| filterType | use this filter for decoding. |
| ownStream | if true outputStream will be deleted along with this stream |
| decodeParms | additional parameters for decoding |
|
inlineoverridevirtual |
Close the PdfOutputStream. This method may throw exceptions and has to be called before the destructor to end writing.
No more data may be written to the output device after calling close.
Implements mm::PdfOutputStream.
|
inlineoverridevirtual |
Write data to the output stream
| buffer | the data is read from this buffer |
| len | the size of the buffer |
Implements mm::PdfOutputStream.