aboutsummaryrefslogtreecommitdiffstats
path: root/examples/qtest
AgeCommit message (Collapse)Author
2023-12-20Remove compression from linearization tests where possibleJay Berkenbilt
By combining --linearize with --compress-streams=n, we ensure that no new compressed data will appear in linearized output, which makes the output independent of zlib's output. There are other tests to ensure that linearization works correctly with compression. This commit involves changing some test outputs and test code as well just updating test suites.
2023-12-20Fix tests when running comparison tool is adequateJay Berkenbilt
Fix all tests where the only required fix is to run qpdf-test-compare instead of doing a simple file comparison.
2023-12-16Allow regular C++ functions to interoperate with the C APIJay Berkenbilt
2023-05-20Tweak pdf-filter-tokens to be less sensitive to floating pointJay Berkenbilt
Switch output to QDF for easier diffing Simplify input image Reduce decimal places This works around an issue were, for certain versions, the mingw32 tests failed because of irrelevant floating point rounding issues in the test output.
2023-03-09Add example qpdfjob-remove-annotationsm-holger
2022-06-19Add examples for output capture (fixes #691)Jay Berkenbilt
2022-03-19Run qpdf from path rather than environment variable in testsJay Berkenbilt
With cmake, we are customizing the path for each test suite so we can ensure we get the right qpdf without having to use an environment variable.
2022-02-08WHITESPACE ONLY -- expand tabs in source codeJay Berkenbilt
This comment expands all tabs using an 8-character tab-width. You should ignore this commit when using git blame or use git blame -w. In the early days, I used to use tabs where possible for indentation, since emacs did this automatically. In recent years, I have switched to only using spaces, which means qpdf source code has been a mixture of spaces and tabs. I have avoided cleaning this up because of not wanting gratuitous whitespaces change to cloud the output of git blame, but I changed my mind after discussing with users who view qpdf source code in editors/IDEs that have other tab widths by default and in light of the fact that I am planning to start applying automatic code formatting soon.
2022-02-07Tidy example CLI usagem-holger
Change "-" to "--" for named parameters. Remove spaces inside "[ option ]" for optional parameters. Fix "pdf-mod-info --dump file" to match usage message.
2022-02-01Finish QPDFJob examples and add tests for themJay Berkenbilt
2021-09-10Fix QPDFEFStreamObjectHelper::{get,set}SubtypeFredrik Fornwall
The /Subtype entry that specifies the mime type of an embedded file is inside the embedded file stream dictionary directly, not it in the parameter dictionary. See Table 45 and 46 in the PDF 1.7 specification: https://www.adobe.com/content/dam/acom/en/devnet/pdf/pdfs/PDF32000_2008.pdf#page=112
2021-03-05QPDFAcroFormDocumentHelper: add missing analyze callsJay Berkenbilt
2021-03-04Major rework of handling form fields when copying pages (fixes #509)Jay Berkenbilt
2021-02-23Remove accidentally-committed file and fix test that created itJay Berkenbilt
2021-02-23Update pdf-overlay-page example to copy annotationsJay Berkenbilt
2021-02-18Add file attachment exampleJay Berkenbilt
2021-02-13QUtil::double_to_string: trim trailing zeroes with option to disableJay Berkenbilt
2021-02-08Make newly created name/number trees indirect objectsJay Berkenbilt
2021-01-30Add example of name/number trees and dictionary/array iterationJay Berkenbilt
2021-01-24QPDFObjectHandle::newUnicodeString to uses UTF-16 only when neededJay Berkenbilt
Use the first of ASCII, PDFDocEncoding, or UTF-16 that is capable of encoding the string.
2020-12-28Add pdf-custom-filter exampleJay Berkenbilt
2020-12-20Provide qpdf write progress reporting from C API (fixes #487)Jay Berkenbilt
2020-11-29Add QPDFObjectHandle manipulation to C APIJay Berkenbilt
2020-04-09Fix typo in test case nameJay Berkenbilt
2020-02-22Mention appearances in pdf-set-form-values exampleJay Berkenbilt
2019-08-23Pass offset and length to ParserCallbacks::handleObjectJay Berkenbilt
2019-02-02Incorporate improved Windows fragility workaround from qtestJay Berkenbilt
2019-01-27Example of form XObject, page overlayJay Berkenbilt
2019-01-07Work around test fragility on WindowsJay Berkenbilt
2018-06-21Add interactive form exampleJay Berkenbilt
2018-02-19Properly handle strings with PDF Doc Encoding (fixes #179)Jay Berkenbilt
The QPDF_String::getUTF8Val() method was not treating strings that weren't explicitly Unicode as PDF Doc Encoded. This only affects characters in the range 0x80 through 0xa0.
2018-02-19Add additional interface for filtering page contentsJay Berkenbilt
2018-02-19Filter tokens exampleJay Berkenbilt
2018-02-19Bug fix: content normalizer should not add trailing newlineJay Berkenbilt
Adding a trailing newline in content normalization damages files whose contents are split across streams in the middle of tokens. Let QPDFWriter add the newline with the indicator to ignore the newline, which it already does. This changes the way some qdf files look.
2018-02-04Rename test output files (fixes #173)Jay Berkenbilt
Some file names had `...` in their name, which causes problems on some systems.
2017-08-21Enhance pdf-create exampleJay Berkenbilt
pdf-create now creates images with different color spaces and encoding schemes and verifies them for data correctness.
2017-07-28Convert many more errors to warningsJay Berkenbilt
2014-06-07Example: fast split into single pagesJay Berkenbilt
This is faster than using qpdf --pages to do it.
2013-11-30Allow -DNO_GET_ENVIRONMENT to avoid GetEnvironmentVariableJay Berkenbilt
If NO_GET_ENVIRONMENT is #defined at compile time on Windows, do not call GetEnvironmentVariable. QUtil::get_env will always return false. This option is not available through configure. This was added to support a specific user's requirements to avoid calling GetEnvironmentVariable from the Windows API. Nothing in qpdf outside the test coverage system in qtest relies on QUtil::get_env.
2013-01-23Cosmetic changes to be closer to Adobe terminologyJay Berkenbilt
Change object type Keyword to Operator, and place the order of the object types in object_type_e in the same order as they are mentioned in the PDF specification. Note that this change only breaks backward compatibility with code that has not yet been released.
2013-01-22Add getTypeCode() and getTypeName()Jay Berkenbilt
Add virtual methods to QPDFObject, wrappers to QPDFObjectHandle, and implementations to all the QPDF_Object types.
2013-01-20Add QPDFObjectHandle::parseContentStream methodJay Berkenbilt
This method allows parsing of the PDF objects in a content stream or array of content streams.
2012-06-23Add pdf-from-scratch exampleJay Berkenbilt
2010-08-06invert images exampleJay Berkenbilt
git-svn-id: svn+q:///qpdf/trunk@1001 71b93d88-0707-0410-a8cf-f5a4172ac649
2010-08-06rename programJay Berkenbilt
git-svn-id: svn+q:///qpdf/trunk@1000 71b93d88-0707-0410-a8cf-f5a4172ac649
2010-08-05add double-page-size exampleJay Berkenbilt
git-svn-id: svn+q:///qpdf/trunk@996 71b93d88-0707-0410-a8cf-f5a4172ac649
2010-04-10change output message from qpdf --check when no errors are foundJay Berkenbilt
git-svn-id: svn+q:///qpdf/trunk@955 71b93d88-0707-0410-a8cf-f5a4172ac649
2009-10-20categorize all error messages and include object information if availableJay Berkenbilt
git-svn-id: svn+q:///qpdf/trunk@829 71b93d88-0707-0410-a8cf-f5a4172ac649
2009-10-14make -key not take an argument with a / to appease msys's path translationJay Berkenbilt
git-svn-id: svn+q:///qpdf/trunk@803 71b93d88-0707-0410-a8cf-f5a4172ac649
2009-09-27C linearization exampleJay Berkenbilt
git-svn-id: svn+q:///qpdf/trunk@739 71b93d88-0707-0410-a8cf-f5a4172ac649