aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDFWriter.cc
AgeCommit message (Collapse)Author
2012-09-23Allow reading from InputSource and writing to PipelineJay Berkenbilt
Allowing users to subclass InputSource and Pipeline to read and write from/to arbitrary sources provides the maximum flexibility for users who want to read and write from other than files or memory.
2012-09-06Add QPDFWriter::setExtraHeaderTextJay Berkenbilt
2012-09-06Fix segmentation fault with use of QPDFWriter::setOutputMemoryJay Berkenbilt
2012-07-16Minor fixes to copyEncryptionParametersJay Berkenbilt
This fixes were to code added yesterday; the problems would not have impacted any previously released code. These are all changes related to the possibility that copyEncryptionParameters may be called on behalf a different QPDF than the one being written.
2012-07-16Bug fix: preserve AES when copying encryption parametersJay Berkenbilt
2012-07-14Add public QPDFWriter::copyEncryptionParametersJay Berkenbilt
Method to copy encryption parameters from another file. Adapted from existing code to copy encryption parameters from the original file.
2012-07-14Have QPDFWriter detect foreign objects while writingJay Berkenbilt
Throw an exception that directs the user to QPDF::copyForeignObject.
2012-07-06Add QPDFWriter method to output to FILE*Jay Berkenbilt
2012-06-25Fix large file support for 32-bit LinuxJay Berkenbilt
2012-06-24Increase padding in linearized filesJay Berkenbilt
With QPDF allowing integers to contain 64-bit quantities, this change is necessary to be able to linearize files whose sizes might be larger than 10 digits.
2012-06-24Fix and test support for files >= 4 GBJay Berkenbilt
2012-06-24Change QPDF_Integer from int to long longJay Berkenbilt
This makes it possible to store offsets that are larger than 2 GB in the trailer dictionary.
2012-06-23Replace the 8-bit characters with \x.. in QPDFWriter.ccJay Berkenbilt
This just makes it safer to pull up this file in an editor.
2012-06-22Use qpdf_offset_t in place of off_t in public APIs.Jay Berkenbilt
off_t is used internally only when needed to talk to standard libraries. This requires that the "long long" type be supported by the compiler.
2012-06-21Iterate of /Info's keys, not trailer's keys, to seed /IDJay Berkenbilt
Thanks Tobias Hoffmann for noticing the error.
2012-06-20ABI change: fix use of off_t, size_t, and integer typesJay Berkenbilt
Significantly improve the code's use of off_t for file offsets, size_t for memory sizes, and integer types in cases where there has to be compatibility with external interfaces. Rework sections of the code that would have prevented qpdf from working on files larger than 2 (or maybe 4) GB in size.
2012-06-20Fix gcc 4.7 warnings about C++11Jay Berkenbilt
2011-08-11fix small logic error surrounding adding newlines; in practice, the logic ↵Jay Berkenbilt
error would probably never manifest itself without other code changes
2011-08-11fix memory error caught by valgrindJay Berkenbilt
2011-08-11remove stray XXX commentJay Berkenbilt
2011-08-11preserve /EncryptMetadata when copying encryption parametersJay Berkenbilt
2011-08-10implement ability to save PDF to memory, also update ChangeLogJay Berkenbilt
2011-08-10implement replace and swapJay Berkenbilt
2010-09-24update code to new PointerHolder, and reintroduce change that was ↵Jay Berkenbilt
accidentally backed out git-svn-id: svn+q:///qpdf/trunk@1031 71b93d88-0707-0410-a8cf-f5a4172ac649
2010-09-05handle stream filter abbreviations from table H.1Jay Berkenbilt
git-svn-id: svn+q:///qpdf/trunk@1025 71b93d88-0707-0410-a8cf-f5a4172ac649
2010-08-02typoJay Berkenbilt
git-svn-id: svn+q:///qpdf/trunk@985 71b93d88-0707-0410-a8cf-f5a4172ac649
2010-08-02remove use of float for version comparisonJay Berkenbilt
git-svn-id: svn+q:///qpdf/trunk@984 71b93d88-0707-0410-a8cf-f5a4172ac649
2010-04-19fix linearization padding bug for second xref stream as well as first, which ↵Jay Berkenbilt
was previously fixed git-svn-id: svn+q:///qpdf/trunk@957 71b93d88-0707-0410-a8cf-f5a4172ac649
2010-04-19refactor to isolate pad calculationJay Berkenbilt
git-svn-id: svn+q:///qpdf/trunk@956 71b93d88-0707-0410-a8cf-f5a4172ac649
2010-03-27comment about flattenScalarReferencesJay Berkenbilt
git-svn-id: svn+q:///qpdf/trunk@945 71b93d88-0707-0410-a8cf-f5a4172ac649
2010-01-24redo padding calculation for first half xref stream; old calculationJay Berkenbilt
failed to consider the effect of compressing the strema git-svn-id: svn+q:///qpdf/trunk@932 71b93d88-0707-0410-a8cf-f5a4172ac649
2009-10-19DLL.hh -> DLL.h, move public enumerated types into Constants.h and use them ↵Jay Berkenbilt
both for C and C++ interfaces git-svn-id: svn+q:///qpdf/trunk@828 71b93d88-0707-0410-a8cf-f5a4172ac649
2009-10-19add C API for R4 encryptionJay Berkenbilt
git-svn-id: svn+q:///qpdf/trunk@825 71b93d88-0707-0410-a8cf-f5a4172ac649
2009-10-19more testing, bug fix for linearized aes encrypted filesJay Berkenbilt
git-svn-id: svn+q:///qpdf/trunk@824 71b93d88-0707-0410-a8cf-f5a4172ac649
2009-10-18more notes, testing of cleartext metadata, some crypt filter fixesJay Berkenbilt
git-svn-id: svn+q:///qpdf/trunk@823 71b93d88-0707-0410-a8cf-f5a4172ac649
2009-10-18only seed randon number generater once for aes-cbc, try to avoid compressing ↵Jay Berkenbilt
Metadata streams git-svn-id: svn+q:///qpdf/trunk@818 71b93d88-0707-0410-a8cf-f5a4172ac649
2009-10-18use StdCF to make adobe reader happy; handle EncryptMetadata properly when ↵Jay Berkenbilt
reading git-svn-id: svn+q:///qpdf/trunk@817 71b93d88-0707-0410-a8cf-f5a4172ac649
2009-10-18implemented writing R4/V4 encryption except that the output files don't open ↵Jay Berkenbilt
in Adobe reader 9.1.3. git-svn-id: svn+q:///qpdf/trunk@816 71b93d88-0707-0410-a8cf-f5a4172ac649
2009-10-17checkpoint -- partially implemented /V=4 encryptionJay Berkenbilt
git-svn-id: svn+q:///qpdf/trunk@811 71b93d88-0707-0410-a8cf-f5a4172ac649
2009-10-17checkpoint -- started doing some R4 encryption supportJay Berkenbilt
git-svn-id: svn+q:///qpdf/trunk@807 71b93d88-0707-0410-a8cf-f5a4172ac649
2009-10-05Implement changes suggested by Zarko and our subsequent conversations:Jay Berkenbilt
- Add a way to set the minimum PDF version - Add a way to force the PDF version - Have isEncrypted return true if an /Encrypt dictionary exists even when we can't read the file - Allow qpdf_init_write to be called multiple times - Update some comments in headers git-svn-id: svn+q:///qpdf/trunk@748 71b93d88-0707-0410-a8cf-f5a4172ac649
2009-09-27checkpoint -- first crack at C API, minor refactoring of encryption functionsJay Berkenbilt
git-svn-id: svn+q:///qpdf/trunk@720 71b93d88-0707-0410-a8cf-f5a4172ac649
2009-09-26removed qexc; non-compatible ABI changeJay Berkenbilt
git-svn-id: svn+q:///qpdf/trunk@709 71b93d88-0707-0410-a8cf-f5a4172ac649
2009-07-15windows fixesJay Berkenbilt
git-svn-id: svn+q:///qpdf/trunk@684 71b93d88-0707-0410-a8cf-f5a4172ac649
2009-07-13Fix a few compiler errors reported correctly my MSVC 9.0.Jay Berkenbilt
Fix libtests test suites to pass on Windows, mostly by dealing with ascii vs. binary and NL vs. CRNL change ($td->NORMALIZE_NEWLINES). Convert some test suites to use fread instead of read. PCRE.hh: define PCRE_STATIC if on Windows. Provide cross-platform function for getting current time instead of using time(0). git-svn-id: svn+q:///qpdf/trunk@678 71b93d88-0707-0410-a8cf-f5a4172ac649
2009-03-09update test suite to handle original object ID commentsJay Berkenbilt
git-svn-id: svn+q:///qpdf/trunk@663 71b93d88-0707-0410-a8cf-f5a4172ac649
2009-03-08write original object ID in a commentJay Berkenbilt
git-svn-id: svn+q:///qpdf/trunk@658 71b93d88-0707-0410-a8cf-f5a4172ac649
2009-02-21fix many typos in comments and stringsJay Berkenbilt
git-svn-id: svn+q:///qpdf/trunk@651 71b93d88-0707-0410-a8cf-f5a4172ac649
2008-05-05fix potential 64-bit issuesJay Berkenbilt
git-svn-id: svn+q:///qpdf/trunk@613 71b93d88-0707-0410-a8cf-f5a4172ac649
2008-05-04typoJay Berkenbilt
git-svn-id: svn+q:///qpdf/trunk@608 71b93d88-0707-0410-a8cf-f5a4172ac649