flexpaper / pdf2json

PDF2JSON is a conversion library based on XPDF (3.02) which can be used for high performance PDF page by page conversion to JSON and XML format. It also supports compressing data to minimize size. PDF2JSON is available for Windows, OSX and Linux. Please see https://flowpaper.com for more information
305 stars 52 forks source link

Compilation throws "forbidden conversion" warnings #40

Open rdupas opened 5 years ago

rdupas commented 5 years ago

g++ version: g++ (Debian 6.3.0-18+deb9u1) 6.3.0 20170516 pdf2json version: 0.70 chunck of the trace:

ImgOutputDev.cc:833:66: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   glMetaVars->append(new HtmlMetaVar("generator", "pdf2json 0.70"));
                                                                  ^
ImgOutputDev.cc:833:66: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
ImgOutputDev.cc:834:67: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   if( author ) glMetaVars->append(new HtmlMetaVar("author", author));
                                                                   ^