R for merging pdf files

When I try to merge multiple PDF files with qpdf packages, I get a warning: reported number of objects (566) inconsistent with actual number of objects (565). But I don't understand the meaning of this warning clearly. I check my final file and seem not to discover any problem.

The main code is : pdf_combine(sort(dir()), output = "mergefinal.pdf")

You can use list.files in place of dirs function. It may help you to specify the type of file i.e ".pdf" as well.

pdftools::pdf_combine(input =
list.files(full.names=TRUE,pattern=".pdf"),
output = "mergefinal.pdf")
1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.