summaryrefslogtreecommitdiffstats
path: root/TODO
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2010-10-01 12:20:38 +0200
committerJay Berkenbilt <ejb@ql.org>2010-10-01 12:20:38 +0200
commit9f444ffef3c11201d0a460b14b6234d3319ce861 (patch)
treee9d89e8e9bc440b0ea2df3963833158d6dfdf866 /TODO
parent359999a59cc1befdc94115d3cd17cb95a0ebdb49 (diff)
downloadqpdf-9f444ffef3c11201d0a460b14b6234d3319ce861.tar.zst
add QPDF::processMemoryFile and API additions to support it
git-svn-id: svn+q:///qpdf/trunk@1034 71b93d88-0707-0410-a8cf-f5a4172ac649
Diffstat (limited to 'TODO')
-rw-r--r--TODO38
1 files changed, 0 insertions, 38 deletions
diff --git a/TODO b/TODO
index b61fd7ba..d3c25152 100644
--- a/TODO
+++ b/TODO
@@ -1,41 +1,3 @@
-2.2.1
-=====
-
-Add interface for working with in-memory PDF files. Here's some code
-to work with.
-
- Pl_Buffer b("b");
- FILE* f = QUtil::fopen_wrapper(std::string("open ") + filename,
- fopen(filename, "rb"));
- unsigned char buf[1024];
- size_t bytes_read = 0;
- while (true)
- {
- size_t len = fread(buf, 1, sizeof(buf), f);
- if (len == 0)
- {
- if (ferror(f))
- {
- throw QPDFExc(qpdf_e_system,
- filename, "",
- 0,
- "read");
- }
- else
- {
- b.finish();
- break;
- }
- }
- else
- {
- b.write(buf, len);
- bytes_read += len;
- }
- }
- fclose(f);
- this->file = new BufferInputSource(filename, b.getBuffer());
-
General
=======