summaryrefslogtreecommitdiff
path: root/utils
AgeCommit message (Collapse)AuthorFilesLines
2013-01-25Large file supportAdrian Johnson2-4/+4
Create a Goffset type and use this type for all file offsets and file sizes. Bug 44085
2013-01-19Make rendering thread-safeThomas Freitag3-3/+6
Bug #50992
2012-12-28Repair pdfuniteThomas Freitag1-2/+2
Sorry, when I implemented the support encrypted pdf files in pdfseparate I missed that writePageObjects of course is also used in pdfunite for combining pages, and even more that encrypted files are still not supported by pdfunite, I removed the numoffset from writing the objects itself. Therefore there are still all objects in the combined pdf file, but the references missing the numoffset and therefore were no more reachable. The patch repairs it. Bug #58569
2012-12-15Updated copyrightsAlbert Astals Cid1-0/+1
2012-12-09pngwriter: move #include <png.h> into .cc filePino Toscano1-0/+4
Move all the private data (including the libpng types) to a private class. This requires HtmlOutputDev.cc to include <png.h> on its own (which is correct, since it uses the libpng API directly).
2012-12-09jpegwriter: move #include "jpeglib.h" into .cc fileAdrian Johnson1-2/+2
On cygwin pdftocairo -v shows the wrong version due to jpeglib.h defining PACKAGE_VERSION. Avoid polluting our header files by moving libjpeg.h and libjpeg types into JpegWriter.cc Bug 57687
2012-11-17pdftocairo: add tiff supportAdrian Johnson2-28/+83
Bug 57006
2012-11-13Remove >= 0 checks for unsigned variablesAlbert Astals Cid2-5/+5
2012-11-13Remove unused varAlbert Astals Cid1-1/+1
2012-11-13Removed unused varAlbert Astals Cid1-1/+0
2012-11-12Parse the args (so that -v says vesion only)Albert Astals Cid1-1/+3
Fixes bug #56817
2012-11-03qt4: Export information about the document form typeFabio D'Urso1-9/+10
This patch also wraps the code that checks the form type and moves it from pdfinfo to the Catalog class.
2012-10-24dos2unixPino Toscano1-438/+438
2012-09-17Support encrypted pdf files in pdfseparateThomas Freitag1-4/+0
2012-09-11Splash: Implement DeviceN supportThomas Freitag1-440/+438
Bug #53140 Some copying from the bug tracker To explain it a little bit more I copy a few lines from "Patch 8.01 — DeviceN Support (6 colors)" of the Ghent PDF workgroup: "This patch tests the DeviceN capabilities of a workflow. If DeviceN is not handled correctly the colors are converted to CMYK. Instead of the check marks an X will appear in the lower left corner of each image and in the gradient. In addition you could inspect the color separations. The objects should appear only in the Black, Pantone 265C and GWG Green separations as indicated in the captions." Without the patch all DeviceN colors are immediately converted to CMYK (with SPLASH_CMYK). This leads especially to problems, if overprint is used: in overprint mode a CMYK color will knockout the underlying CMYK components, BUT neither any spot colors. But if underlying spot colors are immediately converted to CMYK colors, they will be kocked out then, too! The patch now spends up to four (or up to SPOT_NCOMPS) additional spot colors in the splash bitmap, so the order in the bitmap will be CMYKSTUVCMYKSTUVCMYKSTUV... where S, T, U, V are spot colors (I would use S1,S2, S3, S4 if it's possible to use indexes), and all painting operations are done now in this new device. Only at the end, when we want to store the bitmap in a CMYK or RGB color, the spot colors are converted and their alternate CMYK components are added to the normal CMYK components. According to the PDF spec are PDF writer should use different spot color names if they have a different appearance in their alternate CMYK colorspace. "hasDifferntResultSet" (sorry for the typo) proofs that: if the same spot color name is reused BUT has a different appearance in the alternate colorspace, it will be converted immediately to its alternate colorspace. "createMapping" is used so that getDeviceN (color) returns the components in the correct order according their appearance in the splash bitmap, i.e. the fourth detected spot color must be placed in index 7 of the color array. updateFill- and updateStrokeColorspace are needed to create this mapping at the appropriate place. And they are not called once but everytime the colorspace changed in the PDF (but of course only once in Gfx). The GooList *getSeparationList() is used to store the functions for converting the spot colors to their alternate colorspace in order of their appearance in the splash bitmap. The functions are needed to compare if a spot color with the same name has really the same appearance and at the end when the splash bitmap has to be converted to a CMYK or RGB bitmap (s. ahead). deviceNTransfer is needed simular to rgbTransferX or cmykTransferX if a transfer function is specified in the ExtGState and splash uses the DeviceN8. "Do we really need splashModeDeviceN8?": Do we really need splashModeXBGR8? But kidding aside: splashModeDeviceN8 needs four more components than splashModeCMYK8, so the bitmap size in memory doubles the size of a pure CMYK bitmap, and it is only needed if the PDF uses spot colors. So I think it's a good idea to spend an additional mode and let it up to the calling application and the cirumstances if it wants to use this new mode or not.
2012-09-06Add missing licensesAlbert Astals Cid1-0/+1
2012-09-06pdfinfo: Show info about the encryption algorithmFabio D'Urso1-2/+22
2012-09-06Propagate encryption parameters to PDFDoc's write functionsFabio D'Urso1-1/+1
2012-09-06Separated header and footer write commands from the rest of PDFDoc::writeObjectFabio D'Urso1-1/+1
Because in next patch I'll need to pass the object's num and gen always, not only if the object's header and footer need to be written.
2012-08-30Update Adrian's copyrightsAlbert Astals Cid1-1/+1
2012-08-30Move text to unicode conversion into a separate functionAdrian Johnson1-31/+6
This also ensures UTF-16 ActualText strings are converted to UCS-4 before calling addChar.
2012-08-30Convert UTF-16 to UCS-4 when reading toUnicode cmapAdrian Johnson1-13/+1
to ensure only UCS-4 values are used with the "Unicode" type.
2012-08-15build: remove extra fontconfig CFLAGS and LIBSPino Toscano2-6/+1
fontconfig is used only in .cpp sources inside the 'poppler' subdirectory, so there is no need to add the include paths for it in other directories; likewise, do not to link to it if not needed
2012-07-19pdfseparate: Return 0 on successAlbert Astals Cid1-1/+5
2012-05-28pdftohtml: Add -fontfullnameLuis Parravicini3-1/+10
Outputs the font name without any substitutions. Bug #49872
2012-05-28Make the output more xhtml compliantGerald Schmidt1-52/+53
2012-05-21pdfseparate.1: Syntax fixes.Ville Skyttä1-3/+3
2012-05-15Determine if font is bold or italic based on FontDescriptor.Igor Slepchin3-10/+21
Bug #49758
2012-05-10Make it be something closer to real englishAlbert Astals Cid1-1/+1
2012-05-10More gs cleanup and forgot the (C) on modificationAlbert Astals Cid1-4/+0
2012-05-10pdftohtml: Remove the option to invoke gsAlbert Astals Cid2-121/+36
2012-04-26Refactoring of XRef table write support (in preparation for XRef stream ↵Fabio D'Urso1-4/+6
write support) - Trailer dictionary creation now lives in its own function "createTrailerDict" (that will be used by XRef stream creation too) - writeXRefTableTrailer (WAS writeTrailer) now takes care of writing the XRef table too (previously it was demanded to the caller)
2012-04-18Remove duplicate callAlbert Astals Cid1-1/+0
2012-04-16Fix crash when the destination file does not existAlbert Astals Cid1-8/+10
Issue found by Joel Voss of Leviathan Security Group
2012-04-13man pages: add missing section headingAdrian Johnson1-0/+1
2012-04-12Fix the mask inversionIhar Filipau1-1/+1
2012-04-09Add producer and version to xml outputIhar Filipau2-1/+5
2012-03-29Fix: annotDisplayDecideCbk was not propagatedFabio D'Urso1-1/+4
2012-03-28update Makefile.am to reflect LIBJPEG_CFLAGS, LIBTIFF_CFLAGS, LIBPNG_CFLAGS ↵suzuki toshiya1-0/+6
for related sources.
2012-03-16Flip images if they need toIhar Filipau1-2/+48
Bug 32340
2012-03-15pdftohtml: extract mask images even if they are not JPEGIhar Filipau2-75/+131
Bug #47186
2012-03-13Add possibilty of controlling word breaks percentageIhar Filipau3-2/+17
Bug #47022
2012-03-04pdffonts: list the encoding of each fontAdrian Johnson2-3/+7
Bug 46888
2012-03-02Fix pdftops -passfonts regressionWilliam Bader1-5/+5
This patch fixes pdftops -passfonts by using the new psFontPassthrough variable consistently and removing the old psSubstFonts and its setter and getter in GlobalParams. Bug 46744
2012-03-01Update copyrightsAlbert Astals Cid8-2/+8
2012-03-01pdftocairo: document that -scale-to will preserve aspect ratioAdrian Johnson1-1/+3
based on pdftpppm patch 7ec31b8dc40ec8a3534fbb89964aa011aeb81f5e
2012-03-01pdftocairo: allow one of -scale-to-[xy] = -1 to mean the aspect ratio is to ↵Adrian Johnson2-4/+12
be preserved based on pdftoppm patch 38ace7db5de0b2b247fd520e48a8f26e5d28c9d7
2012-02-29Change nnnnnn to numberAlbert Astals Cid1-2/+2
This way people won't expect it to be six fixed digits Bug #46708
2012-02-28pdftoppm: document that -scale-to will preserve aspect ratioAdrian Johnson1-1/+3
2012-02-28pdftoppm: allow one of -scale-to-[xy] = -1 to mean the aspect ratio is to be ↵Adrian Johnson2-4/+12
preserved bug 43393