1. 09 Jan, 2019 3 commits
  2. 22 Dec, 2018 1 commit
  3. 18 Dec, 2018 1 commit
  4. 09 Dec, 2018 1 commit
  5. 28 Nov, 2018 1 commit
  6. 27 Nov, 2018 1 commit
  7. 16 Nov, 2018 1 commit
  8. 12 Nov, 2018 1 commit
  9. 11 Nov, 2018 1 commit
  10. 09 Nov, 2018 2 commits
  11. 02 Nov, 2018 1 commit
    • Nelson Benitez's avatar
      Form.cc: fix checkbox lacking /AP cannot change state · 91fa06ee
      Nelson Benitez authored
      When a checkbox had no /AP key (which is not mandatory)
      poppler was silently ignoring the setState() call that
      changes the checked/unchecked state.
      Fixed by using getOnStr() instead of accessing onStr
      directly, as the former has code in place to return
      correct values when the field is a checkbox and has
      no names for the On/Off states (as a result of not
      having the /AP key which could contain those names).
      A testcase is included. An example definition of an
      affected checkbox follows:
      /F 4
      /FT /Btn
      /H /P
      /MK /BC [1,0,0] /BG [1,1,1] /CA (4)
      /Q 0
      /Rect [235.277,654.247,249.224,668.194]
      /Subtype /Widget
      /T (basiccheckbox)
      /Type /Annot
      /V /Off
      Fixes issue #655
  12. 31 Oct, 2018 2 commits
  13. 23 Oct, 2018 1 commit
  14. 03 Oct, 2018 1 commit
  15. 02 Oct, 2018 2 commits
  16. 01 Oct, 2018 1 commit
  17. 22 Sep, 2018 1 commit
  18. 08 Sep, 2018 1 commit
  19. 02 Sep, 2018 3 commits
    • Albert Astals Cid's avatar
      qt5: test: Compile with old qt · 09cc5fd1
      Albert Astals Cid authored
    • Tobias Deiminger's avatar
      More review fixes · d4b4be23
      Tobias Deiminger authored
      Text color is indicated by nonstroking color in graphics state
      	Assumption: Text rendering mode is 'fill'.
      Increase color precision for lossless roundtrip of 16 bit integers
      	Our API takes QColor from user. We want to support a lossless roundtrip
      	of QColor (16 bit per channel internally) through document save and
      	load, and empirically found .5f is best match.
      Check only .5f case of color channel roundtrip. Include 65535.
      	We check if precision == 5 is sufficient, and fail if not. We know that
      	precision < 5 will never work, because target set contains less numbers
      	than uint16 range.
      Use smart pointer in textFont and textColor
      Add test for CMYK QColor roundtrip
      Support QColor::Cmyk to AnnotColor::colorCMYK conversion
      Add simple test for font size. Fix actual/expected args.
      Model font name as class Object, type objName
      	Take into account that ISO 32000 says Tf operand is always an object of
      	PDF type "name". Further benefit: class Object introduces ownership
      Use more std::unique_ptr and fix some coding syle
      	Some places assumed ownership implicitely. Make it more explicit.
      Move parse/constructAppearanceString into DefaultAppearance
      	We gain cohesion and automatic memory management.
      Fix minor styling issues
      Use std::make_unique from C++14
    • Adam Reichold's avatar
  20. 06 Apr, 2018 1 commit
    • Albert Astals Cid's avatar
      Make Object return const GooString pointer · a8e93f46
      Albert Astals Cid authored
      This helps making sure noone is changing strings that belong to objects without us realizing.
      In fact noone was doing except an ifdef for windows, fixed it to not modify the dict contents anymore
  21. 21 Feb, 2018 1 commit
  22. 02 Feb, 2018 1 commit
  23. 08 Jan, 2018 1 commit
  24. 02 Dec, 2017 1 commit
    • Adrian Johnson's avatar
      Fix UTF test fail · cef42ac8
      Adrian Johnson authored
      The buffer size was not large enough. Increase it and add an assert to
      check the buffer size.
  25. 15 Nov, 2017 1 commit
    • Adrian Johnson's avatar
      Support unicode on windows console · a6dd3f95
      Adrian Johnson authored
      The Win32Console should be used in programs that require unicode
      support for command line arguments and stdio ouput on windows. On
      windows it gets the command line arguments from GetCommandLineW and
      converts to UTF-8, and redefines the stdio output functions to convert
      UTF-8 to calls to WriteConsoleW. On other platforms this class is a
  26. 21 Sep, 2017 1 commit
  27. 20 Sep, 2017 1 commit
  28. 16 Sep, 2017 1 commit
  29. 13 Sep, 2017 1 commit
  30. 03 Sep, 2017 1 commit
  31. 13 Aug, 2017 2 commits
  32. 08 May, 2017 1 commit
    • Albert Astals Cid's avatar
      New Object API · 9773c153
      Albert Astals Cid authored
      Implement the move operators and copy construtor
      Almost all the init() functions are gone and we just have simple
      constructors now
      Also made free() public since you're not supposed to call it anymore,
      unless you're being evil and malloc'ing Objects like Array/Dict/XRef
      This has a huge reaction chain, most importantly we
      don't get objects by passing a pointer Object parameter, we
      just get the object as a return value, which is a much clearer API
       -  aobj->copy(&obj);
       +  obj = aobj->copy();
      before I was never sure what was being copied into what
      Comes with a huge diff, I probably made some mistake in the porting
      since there was lots of copy & paste involved