Please give a brief summary of your issue:
Need to convert PDFDoc to buffer without saving to memory. How can we achieve that?
Tried to use PDFDoc class function saveViewerOptimizedBuffer, but get “is not a function” error.
Please describe your issue and provide steps to reproduce it:
(The more descriptive your answer, the faster we are able to help you)
Sorry I was trying to follow the documentation but I am struggling a bit here.
Here’s the code I tried, and result in ops.setMinimumInitialThumbnails is not a function error
Thank you for your response. I noticed that you initially stated that you are running 9.1. Please note that this method is only available with the 9.2 release. Please upgrade and try running the code again.
I think the main question is, is there a way for me to convert a PDFDoc to a buffer, without saving it to the memory?
If you are looking to save the document to a buffer, you can either use the saveViewerOptimizedBuffer method, or PDFDoc to a buffer, or you can use the saveMemoryBuffer().