Skip to content

Commit 7f87b26

Browse files
authored
fix: compatibility with qpdf v10 (#62)
Signed-off-by: Michele Dolfi <[email protected]>
1 parent 13c31b3 commit 7f87b26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/v2/qpdf/to_json.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ namespace pdflib
351351

352352
if(metadata.isStream())
353353
{
354-
std::shared_ptr<Buffer> ptr = metadata.getStreamData(qpdf_dl_all);
354+
auto ptr = metadata.getStreamData(qpdf_dl_all);
355355

356356
// Convert raw data to std::string
357357
std::string content(reinterpret_cast<const char*>(ptr->getBuffer()), ptr->getSize());

0 commit comments

Comments
 (0)