2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-06-03 19:00:51 +00:00

Use pipePageContents in tokenizer test

This commit is contained in:
Jay Berkenbilt 2018-01-30 21:42:45 -05:00
parent 6afe83978f
commit cc108a7f1b

View File

@ -213,13 +213,7 @@ static void process(char const* filename, bool include_ignorable,
{
++pageno;
Pl_Buffer plb("buffer");
std::vector<QPDFObjectHandle> contents = (*iter).getPageContents();
for (std::vector<QPDFObjectHandle>::iterator citer = contents.begin();
citer != contents.end(); ++citer)
{
(*citer).pipeStreamData(&plb, 0, qpdf_dl_specialized);
}
plb.finish();
(*iter).pipePageContents(&plb);
PointerHolder<Buffer> content_data = plb.getBuffer();
BufferInputSource* bis = new BufferInputSource(
"content data", content_data.getPointer());