summaryrefslogtreecommitdiff
path: root/utils/pdffonts.cc
AgeCommit message (Collapse)AuthorFilesLines
2019-12-03Add some more constAlbert Astals Cid1-2/+2
2019-11-29Enable modernize-deprecated-headersAlbert Astals Cid1-4/+4
2019-11-09Remove goto-based error handling in pdffonts.ccOliver Sander1-12/+5
Now that globalParams is a unique_ptr, there is no need for these gotos anymore.
2019-11-09Make globalParams a std::unique_ptrOliver Sander1-2/+1
2019-11-07Do not include string.h, it is not usedOliver Sander1-1/+0
2019-11-07Use std::unique_ptr for passwordsOliver Sander1-14/+4
2019-11-07Use std::unique_ptr for PDFDocOliver Sander1-4/+3
2019-11-07Use std::string for the filenameOliver Sander1-8/+7
... and create it on the stack rather than on the heap. Makes the code more readable.
2019-11-07Remove the 'err0' error handling goto targetOliver Sander1-2/+1
It is used only once, and removing it allows me to move variable declarations around more freely.
2019-10-23Make FontInfo::scan return a std::vector objectOliver Sander1-11/+3
... rather than a pointer to a std::vector. Given that a std::vector is little more than a pointer and some size information, there is no need to create std::vector objects on the heap. Returning them by value is just as fast (the vector content is not copied), and makes the code more readable, too.
2019-03-21Update (C) from last commitAlbert Astals Cid1-0/+1
2019-03-21Remove GooList completelyOliver Sander1-1/+1
2019-03-21Remove method GooList::getOliver Sander1-2/+2
Use operator[] instead. This is another move towards discarding GooList in favor of std::vector.
2019-03-21Make GooList a template typeOliver Sander1-1/+1
One more step towards getting rid of it completely.
2019-03-21Remove method GooList::getLengthOliver Sander1-2/+2
Use method 'size' (from std::vector) instead.
2018-11-11Rename GooString::getCString GooString::c_strOliver Sander1-5/+5
This is the name used by std::string.
2018-10-23Replace GBool, gTrue, and gFalse by bool, true, false, resp.Oliver Sander1-4/+4
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-08-29Add (c) of the last few commitsAlbert Astals Cid1-0/+1
2018-08-29Remove DEBUG_MEM from Object since this uses RAII now and hence cannot leak. ↵Adam Reichold1-3/+0
(The existing tracking also is not thread-safe and hence unreliable.)
2018-08-29Remove generic heap debugging from gmem since external tools and compiler ↵Adam Reichold1-1/+0
instrumentation achieve the same effect.
2018-01-09Enable no-missing-field-initializersAlbert Astals Cid1-2/+2
2018-01-08Run clang-tidy with modernize nullptrAlbert Astals Cid1-3/+3
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-12-03Add missing (C)Albert Astals Cid1-1/+1
2017-11-15Support unicode on windows consoleAdrian Johnson1-0/+2
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 no-op.
2013-11-27Warn the user if he provides a wrong rangesuzuki toshiya1-0/+7
2012-03-04pdffonts: list the encoding of each fontAdrian Johnson1-3/+4
Bug 46888
2012-03-01Update copyrightsAlbert Astals Cid1-0/+1
2012-02-06Merge branch 'master' into xpdf303mergeAlbert Astals Cid1-19/+48
Conflicts: poppler/CairoOutputDev.cc poppler/CairoOutputDev.h poppler/FontInfo.cc poppler/GfxFont.cc poppler/GfxState.cc poppler/GlobalParams.cc poppler/GlobalParams.h poppler/Lexer.cc
2012-01-07Add -subst option to pdffonts to list the substitute font name and filenameAdrian Johnson1-19/+48
Bug 44416
2011-08-30xpdf303: char * -> const char *Albert Astals Cid1-1/+1
2010-12-12Do not return 99 (or 1) with -h, -v and -printencAlbert Astals Cid1-0/+2
Bug 32149
2010-11-28Use FontInfoScannerAlbert Astals Cid1-159/+26
No idea why we didn't do this before, duplicate code is evil and now pdffonts doesn't crash on pdf from bug 20486
2010-11-10Linearization improvementsHib Eris1-1/+5
Read http://lists.freedesktop.org/archives/poppler/2010-November/006642.html for the detailed patch description
2010-04-05Make some paremeters const & to clearly show we just read themAlbert Astals Cid1-2/+2
2010-04-05Use PDFDocFactory in utilsHib Eris1-8/+8
2008-09-01All poppler commiters to these files agreed to GPLv2+Albert Astals Cid1-0/+3
Still missing to answer Marco Pesenti Gritti Catalog.cc Outline.cc Outline.h Kjartan Maraas HtmlOutputDev.cc Timothy Lee ImageOutputDev.h ImageOutputDev.cc Carl Worth CairoOutputDev.cc Ed Catmur GfxFont.cc GlobalParams.cc TextOutputDev.cc TextOutputDev.h UnicodeTypeTable.cc UnicodeTypeTable.h
2008-08-24Add more correct copyright statements on fofi, goo, poppler and util ↵Albert Astals Cid1-0/+12
directories to be more compliant with GPL that requires such modification statements to be present. Meanwhile i did that, i did qt and qt4 dirs too, glib is missing if someone wants to fix it, but it's not crucial as it's not a fork of some other GPL software
2008-08-01Get rid of more defines, say our version on command line tools, also say our ↵Albert Astals Cid1-1/+2
copyright Did not modify PSOutputDev.cc output as PS is too fragile
2008-04-29constify argDesc arraysAlbert Astals Cid1-1/+1
Gives me binaries 2KB smaller (in total) in release build
2007-04-25Merge xpdf302branch in HEAD as noone vetoed it.Albert Astals Cid1-6/+9
Testing more than welcome
2007-02-242007-02-25 Albert Astals Cid <aacid@kde.org>Albert Astals Cid1-4/+1
* configure.ac: * glib/poppler-document.cc: * poppler/GlobalParams.cc: * poppler/GlobalParams.h: * poppler/PSOutputDev.cc: * qt/poppler-document.cc: * qt4/src/poppler-document.cc: * qt4/src/poppler-private.h: * qt4/src/poppler-qt4.h: * test/gtk-splash-test.cc: * test/pdf-inspector.cc: * utils/pdffonts.cc: * utils/pdfimages.cc: * utils/pdfinfo.cc: * utils/pdftohtml.cc: * utils/pdftoppm.cc: * utils/pdftops.cc: * utils/pdftotext.cc: Remove dependency on xpdfrc file and cleanup GlobalParams accordingly
2006-08-042006-08-05 Albert Astals Cid <aacid@kde.org>Albert Astals Cid1-1/+10
* utils/pdftotext.cc: * utils/pdfinfo.cc: * utils/pdffonts.cc: Add the posibility of reading a file from stdin. Patch by Dom Lachowicz
2006-01-232006-01-23 Kristian Høgsberg <krh@redhat.com>Kristian Høgsberg1-1/+1
* glib/test-poppler-glib.c (print_document_info, print_index): Move variable declarations to top (#5692). * utils/*.cc: Move config.h #include to top of #include's (#5693).
2006-01-18Brad patch for embedded document extraction, only has Qt4 bindings for now, ↵Albert Astals Cid1-0/+1
needs Qt3 and glib work
2005-12-122005-12-12 Kristian Høgsberg <krh@redhat.com>Kristian Høgsberg1-0/+294
* Makefile.am: * configure.ac: * goo/GooVector.h: * utils/HtmlFonts.cc: * utils/HtmlFonts.h: * utils/HtmlLinks.cc: * utils/HtmlLinks.h: * utils/HtmlOutputDev.cc: * utils/HtmlOutputDev.h: * utils/ImageOutputDev.cc: * utils/ImageOutputDev.h: * utils/Makefile.am: * utils/parseargs.c: * utils/parseargs.h: * utils/pdffonts.1: * utils/pdffonts.cc: * utils/pdfimages.1: * utils/pdfimages.cc: * utils/pdfinfo.1: * utils/pdfinfo.cc: * utils/pdftohtml.1: * utils/pdftohtml.cc: * utils/pdftoppm.1: * utils/pdftoppm.cc: * utils/pdftops.1: * utils/pdftops.cc: * utils/pdftotext.1: * utils/pdftotext.cc: Add command line utilities from xpdf.