1. 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
      a8e93f46
  2. 18 Mar, 2018 1 commit
  3. 02 Feb, 2018 1 commit
  4. 08 Jan, 2018 1 commit
  5. 04 Jan, 2018 1 commit
    • Adrian Johnson's avatar
      Fix some bugs in StructTreeRoot parsing of parent tree · 32153825
      Adrian Johnson authored
      - Add support for parsing child nodes in the number tree
      - Number tree keys do not have to be consecutive numbers. Use
        map instead of vector for parentTree.
      - Due to performance impact of iterating a map instead of
        vector in parentTreeAdd, add a reverse mapping from Ref
        to parentTree.
      - Add mcid parameter to findParentElement() to enable finding
        the parent when there are multiple MCIDs on the same page.
      - Move RefCompare from pdfinfo.cc to Object.h so it can be
        used by other files.
      
      Bug #103912
      32153825
  6. 16 Sep, 2017 1 commit
  7. 04 Sep, 2017 1 commit
  8. 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
  9. 05 May, 2017 1 commit
  10. 01 Dec, 2016 1 commit
  11. 26 Nov, 2016 1 commit
  12. 05 Jul, 2015 1 commit
  13. 07 Oct, 2014 1 commit
  14. 27 Mar, 2014 1 commit
  15. 05 Mar, 2014 1 commit
  16. 23 Feb, 2014 1 commit
  17. 08 Feb, 2014 2 commits
  18. 28 Dec, 2013 1 commit
  19. 05 Dec, 2013 1 commit
  20. 12 Nov, 2013 1 commit
  21. 02 Oct, 2013 1 commit
    • Adrián Pérez de Castro's avatar
      Tagged-PDF: Implement parsing of StructTreeRoot · e04cabd8
      Adrián Pérez de Castro authored
      Implement parsing of the StructTreeRoot entry of the Catalog. Also, the
      Catalog::getStructTreeRoot() and PDFDoc::getStructTreeRoot() methods are
      modified to return an instance of StructTreeRoot instead of an Object.
      
      All elements from the StructTreeRoot are parsed except for:
      
      - IDTree: it is a lookup tree to locate items by their ID, which would
        be barely useful because the whole structure tree is to be kept in
        memory, which should be fast enough to traverse.
      - ParentTreeNextKey: This is needed only when the ParentTree object is
        to be modified. For the moment the implementation deals only with
        reading, so this has been deliberately left out.
      
      StructElem tree nodes from the document structure tree are parsed as a
      StructElement instance. Attributes and extraction of content out from
      elements are not yet handled.
      
      https://bugs.freedesktop.org/show_bug.cgi?id=64815
      e04cabd8