1

I am using this line in my code:

PdfMemDocument doc(path);

And podofo writes this to stderr:

<<27598670A0B3314EB669BB62DEB4F7FD>]/Info 126 0 R/Prev 503377/Root 1 0 R/Size 1107/XRefStm 500774>>

<<27598670A0B3314EB669BB62DEB4F7FD>]/Info 126 0 R/Prev 503377/Root 1 0 R/Size 1107/XRefStm 500774>>

<<27598670A0B3314EB669BB62DEB4F7FD>]/Info 126 0 R/Prev 503377/Root 1 0 R/Size 1107/XRefStm 500774>>

I dont want this (debug?) output of podofo. Any ideas how to deactivate this?

Sergey Shambir
  • 1,562
  • 12
  • 12
andrew
  • 97
  • 1
  • 10

1 Answers1

2

Call once PoDoFo::PDFError::EnableDebug static method:

PoDoFo::PdfError::EnableDebug(false);
PoDoFo::PdfError::EnableLogging(false);

Unfortunately, this method defined in header file, so there will be PoDoFo DLL linking errors on Windows. You can fix this issue by modifying PoDoFo source code: move definitions into CPP file.

Sergey Shambir
  • 1,562
  • 12
  • 12