Closed IgorRomanvsky closed 4 years ago
Solved by doing:
const pdfWriter = hummus.createWriterToModify(inputStream, outStream);
const copyingContext = pdfWriter.createPDFCopyingContextForModifiedFile();
console.log(copyingContext.getSourceDocumentParser().parsePage(0).getMediaBox());
I have a stream that I reading from a buffer by using:
const inputStream = new hummus.PDFRStreamForBuffer(buffer)
How can I get the page original page size and properties Like when Im using :
var pdfReader = hummus.createReader('./TestMaterials/XObjectContent.PDF').getMediaBox()