summaryrefslogtreecommitdiff
path: root/poppler/FileSpec.cc
AgeCommit message (Collapse)AuthorFilesLines
2019-02-28Add new util: pdfattachAlbert Astals Cid1-0/+28
2019-02-27Change Dict::lookupNF return a const &Albert Astals Cid1-2/+2
Saves some copy()
2019-01-05Update (C) of previous commitsAlbert Astals Cid1-0/+1
2019-01-03all: Use the openFile fopen wrapper from gfile.hChristian Persch1-1/+2
Use the openFile wrapper instead of calling fopen directly in the libraries.
2018-12-29FileSpec: Move the fileSpec.dictLookup call inside fileSpec.isDict ifAlbert Astals Cid1-4/+5
Fixes #704
2018-11-12Save an incRef/decRef when creating EmbFileAlbert Astals Cid1-7/+5
2018-11-06Update (C)Albert Astals Cid1-0/+1
2018-11-06Check for stream before calling stream methods when saving an embedded file.Adam Reichold1-0/+3
Closes #659
2018-10-23Replace GBool, gTrue, and gFalse by bool, true, false, resp.Oliver Sander1-8/+8
These are just non-standard names for bool, true, false, respectively. Getting rid of these names saves on layer of mental redirection, and enables proper syntax highlighting in editors.
2018-04-06Add some more constAlbert Astals Cid1-5/+5
const is always good :)
2018-04-06Make Object return const GooString pointerAlbert Astals Cid1-1/+3
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
2018-01-08Run clang-tidy with modernize nullptrAlbert Astals Cid1-9/+9
Also add two enum values in the qt5 frontend to representate no flags Also mark glib/gtk/cairo system includes so that gcc doesn't report the issues in those headers
2017-05-09New Object APIAlbert Astals Cid1-74/+59
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
2012-12-01Fix compile warnings on deprecated conversion from string constant to 'char*'Hib Eris1-1/+2
2012-08-30Return NULL EmbFile if the FileSpec is not okAlbert Astals Cid1-0/+4
Otherwise we might end up asserting
2011-09-25xpdf303: Added the pdfdetach toolCarlos Garcia Campos1-0/+22
I haven't merged xpdf code for embedded files, I think our implementation is better and more complete. I've adapated pdfdetach code to use our code and return also embedded files of file attachment annotations to match what xpdf does.
2011-08-31xpdf303: error() changes, new param and formattingAlbert Astals Cid1-4/+4
2011-08-30xpdf303: char * -> const char *Albert Astals Cid1-1/+1
2011-05-27Make FileSpec a class and move EmbFile from Catalog to FileSpecCarlos Garcia Campos1-0/+128
Qt and cpp frontends adapted by Pino Toscano
2009-10-05Use _WIN32 instead of WIN32Kovid Goyal1-3/+4
More info at http://bugs.freedesktop.org/show_bug.cgi?id=24259
2009-07-08Lookup UF and F entries before Unix, MAC and DOS in getFileSpecCarlos Garcia Campos1-12/+12
2009-07-08Use UF entry when present in dict in getFileSpecName() tooCarlos Garcia Campos1-0/+5
2009-07-08Do not use F and UF entries if Unix or DOS are present in FileSpec dictCarlos Garcia Campos1-63/+51
2009-02-21Use the UF entry when present in Filespec dictionaryCarlos Garcia Campos1-7/+7
2008-09-05Unify multiple File Specification parsersCarlos Garcia Campos1-0/+146