1. 07 Jan, 2019 2 commits
    • Marek Kasik's avatar
      glib: Make PrintScaling preference available in API · 75f3d31d
      Marek Kasik authored
      Add poppler_document_get_print_scaling() function and
      PopplerPrintScaling enum so that applications which
      use poppler's glib frontend can access this preference.
      
      https://bugs.freedesktop.org/show_bug.cgi?id=92779
      75f3d31d
    • Christian Persch's avatar
      glib: Fix named destinations · 44505cb3
      Christian Persch authored
      Named destinations may be described by bytestrings, containing
      embedded NULs and not being NUL terminated. That means they cannot
      be exposed directly as char*.
      
      The alternatives are to escape the string from the internal representation
      when exposing it in the API (e.g. in PopplerDest.named_dest), or to
      add parallel API exposing it as GString, or GBytes. This patch chooses
      the first option, since the presence of these named destionations in the
      public, not sealed, PopplerDest struct means that the second option would
      need more API additions. The chosen option is simpler, and does not
      need the API users to adapt unless they create the named dest strings
      themselves, or consume them in ways other than calling poppler APIs.
      
      The escaping scheme chosen simply replaces embedded NUL with "\0" and
      escapes a literal backslash with "\\".  This is a minimal ABI change in
      that some strings that previously worked unchanged as destinations
      (those containing backslash) now don't work, but on the other hand,
      previously it was impossible to use any destinations containing embedded
      NULs.
      
      Add poppler_named_dest_{from,to}_bytestring() to perform that
      conversion, and clarify the documentation for when you need them.
      
      Based on a patch by José Aliste <jaliste@src.gnome.org>.
      
      poppler/poppler#631
      44505cb3
  2. 20 Dec, 2018 1 commit
  3. 11 Nov, 2018 1 commit
  4. 07 Nov, 2018 1 commit
  5. 23 Oct, 2018 1 commit
  6. 19 Oct, 2018 1 commit
  7. 16 Oct, 2018 1 commit
  8. 05 Oct, 2018 2 commits
  9. 23 Sep, 2018 1 commit
  10. 17 Sep, 2018 1 commit
  11. 06 Apr, 2018 1 commit
  12. 05 Apr, 2018 2 commits
  13. 08 Jan, 2018 1 commit
  14. 16 Sep, 2017 1 commit
  15. 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
      9773c153
  16. 23 Oct, 2016 1 commit
  17. 17 Jul, 2016 1 commit
  18. 03 Jul, 2016 1 commit
  19. 01 Dec, 2012 1 commit
  20. 06 Oct, 2012 2 commits
  21. 24 May, 2012 2 commits
  22. 13 May, 2012 7 commits
  23. 02 May, 2012 1 commit
  24. 07 Mar, 2012 1 commit
  25. 01 Mar, 2012 1 commit
  26. 04 Feb, 2012 2 commits
  27. 30 Jan, 2012 1 commit
  28. 20 Jan, 2012 1 commit