Hello Joerg, hello all,
> On 22 May 2018 at 12:56 Joerg Sonnenberger <jo...@bec.de> wrote:
> 
> 
> On Tue, May 22, 2018 at 12:48:50PM +0200, M. Froese wrote:
> > thank you joerg, so what might be wrong with my podofo build? the resulting
> > image is included in the attachment.
> 
> Windows problem. The file is not written as binary, so \n gets messed
> up.
> 
> Joerg

AFAICS in tools/pofofoimgextract/ImageExtractor.cpp (line 102 in current
svn r1926) the output file is opened as binary (on each call, and it's
the only place one is opened for writing in the program).
In PoDoFo in general, PdfOutputDevice forces opening files as binary in
its constructors taking a filename, see src/base/PdfOutputDevice.cpp
lines 59-63 and 93 in current svn. So the only one which could use a
file opened in text mode is PdfOutputDevice(const std::ostream*).

Where could the problem lie then, please? TIA.

Best regards, mabri

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to