There is this:
PdfOutputDevice::PdfOutputDevice( const std::ostream* pOutStream )
But this will not set m_pReadStream so signing pdf opened/created using c++
streams is not possible. Because signing requires to read file after it is
written.
On the other hand when opening from const char* filename there is
m_pReadStream set along with m_pStream.
I am suggesting to add this function to PdfOutputDevice.cpp:
```
PdfOutputDevice::PdfOutputDevice( const std::iostream* pStream )
{
this->Init();
m_pStream = const_cast< std::iostream* >( pStream );
m_pReadStream = const_cast< std::iostream* >( pStream );
m_pStreamOwned = false;
#if USE_CXX_LOCALE
m_pStreamSavedLocale = m_pStream->getloc();
PdfLocaleImbue(*m_pStream);
#endif
}
```
And to header PdfOutputDevice.h:
```
PdfOutputDevice( const std::iostream* pStream );
```
_______________________________________________
Podofo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/podofo-users