Product: Nodejs - @pdftron/pdfnet-node
Product Version: 9.2.0
Please give a brief summary of your issue: Overflowed Text from a Page got missing
Please describe your issue and provide steps to reproduce it:
Description: I’m trying to append a list of logs at the end of the existing PDF file. After create a file, create log elements, if the number of logs is large enough to overflow the page (like the page could only show up to 3 items) , the rest of the logs (starting from 4) will be missing.
Desire: Automatically break the page when it reaches limit.
Steps to reproduce: just create a page with many text elements
Hello, I’m Ron, an automated tech support bot
While you wait for one of our customer support representatives to get back to you, please check out some of these documentation pages:
- TextSearch - public boolean begin (PDFDoc doc, String pattern, int mode, int start_page, int end_page)
- PDFRasterizer - public void rasterize (Page page, int buffer, int width, int height, boolean demult, Matrix2D device_mtx, Rect clip)
- Convert - public static void toSvg (Page in_page, String in_filename, Convert.SVGOutputOptions in_options)
If you are using our low level ElementBuilder API then no, there is no reflow (since PDF itself is fixed format).
If you want reflow done for you please use one of the higher level conversion APIs. Such as:
note: you can re-use the same PDFDoc instance and the above APIs will keep appending pages, in case you want to chain multiple conversions/logging.
If the above does not work for you, then please elaborate on what you have tried and what you are trying to accomplish.