• * [bcc32 Error] QPDF.cc(375): E2268 Call to undefined function 'atof'
      Full parser context
        QPDF.cc(358): parsing: void QPDF::parse(const char *)
    
    * [bcc32 Error] QPDFTokenizer.cc(183): E2268 Call to undefined function 'strtol'
      Full parser context
        QPDFTokenizer.cc(163): parsing: void QPDFTokenizer::resolveLiteral()
    
    * [bcc32 Error] pdf-split-pages.cc(52): E2268 Call to undefined function 'exit'
      Full parser context
        pdf-split-pages.cc(50): parsing: void usage()
    
    * PR #295: Including "cstdlib" should be replaced with "stdlib.h" to be more consistent. At the same time I changed the order of the surrounding includes to reflect alphabetical order, because at some files this already have been the case.
    Thorsten Schöning authored
     
    Browse Dir »





















  • If NO_GET_ENVIRONMENT is #defined at compile time on Windows, do not
    call GetEnvironmentVariable.  QUtil::get_env will always return
    false.  This option is not available through configure.  This was
    added to support a specific user's requirements to avoid calling
    GetEnvironmentVariable from the Windows API.  Nothing in qpdf outside
    the test coverage system in qtest relies on QUtil::get_env.
    Jay Berkenbilt authored
     
    Browse Dir »









  • Move object parsing code from QPDF to QPDFObjectHandle and
    parameterize the parts of it that are specific to a QPDF object.
    Provide a version that can't handle indirect objects and that can be
    called on an arbitrary string.
    
    A side effect of this change is that the offset used when reporting
    invalid stream length has changed, but since the new value seems like
    a better value than the old one, the test suite has been updated
    rather than making the code backward compatible.  This only effects
    the offset reported for invalid streams that lack /Length or have an
    invalid /Length key.
    
    Updated some test code and exmaples to use QPDFObjectHandle::parse.
    
    Supporting changes include adding a BufferInputSource constructor that
    takes a string.
    Jay Berkenbilt authored
     
    Browse Dir »