Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions filter/pdftopdf/qpdf_pdftopdf_processor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,7 @@ bool QPDF_PDFTOPDF_Processor::loadFile(FILE *f,ArgOwnership take,int flatten_for
case WillStayAlive:
try {
pdf->processFile("temp file",f,false);
pdf->setSuppressWarnings(true);
} catch (const std::exception &e) {
error("loadFile failed: %s",e.what());
return false;
Expand All @@ -499,6 +500,7 @@ bool QPDF_PDFTOPDF_Processor::loadFile(FILE *f,ArgOwnership take,int flatten_for
case TakeOwnership:
try {
pdf->processFile("temp file",f,true);
pdf->setSuppressWarnings(true);
} catch (const std::exception &e) {
error("loadFile failed: %s",e.what());
return false;
Expand All @@ -519,6 +521,7 @@ bool QPDF_PDFTOPDF_Processor::loadFilename(const char *name,int flatten_forms) /
try {
pdf.reset(new QPDF);
pdf->processFile(name);
pdf->setSuppressWarnings(true);
} catch (const std::exception &e) {
error("loadFilename failed: %s",e.what());
return false;
Expand Down