能否实现Netsuite Advanced PDF滚筒打印机的无尽页打印?
Great question—this is a super common use case for invoice printing with roll printers, and the good news is NetSuite Advanced PDF does support endless/continuous paper mode. Here’s what you need to know and how to configure it:
Confirmation of Support
First, to directly answer your core question: Yes, NetSuite’s Advanced PDF tool works seamlessly with continuous roll printers. The key is configuring your PDF template to use a fixed width and dynamic (content-adaptive) height, paired with matching printer settings.
Step-by-Step Configuration
1. Set Fixed Width & Dynamic Height in the PDF Template
NetSuite’s Advanced PDF relies on the BFO Report Designer engine, so you’ll need to adjust the root <pdf> tag to define a custom page size with a fixed width and no set height (letting content dictate the page length).
Replace your existing <pdf> tag (which might use a standard size like "Letter" or "A4") with something like this:
<pdf setup="1" margin="0.25in" page-size="custom" width="8.5in"/>
width: Set this to match your roll paper’s physical width (e.g., 8.5in for standard US roll paper, 210mm for A4 roll).- Omit the
heightattribute entirely—this tells the engine to extend the page height automatically to fit all content, creating that "endless" paper effect. - Adjust
marginvalues to fit your invoice layout needs.
2. Remove Unwanted Page Breaks
Make sure your template doesn’t force unnecessary page splits that would trigger the printer to cut the paper prematurely:
- Delete any manual
<pagebreak/>tags in the template unless you intentionally need to split content. - Check your CSS styles for
page-break-after: alwaysorpage-break-before: alwaysrules—remove these if they’re not essential to your layout.
3. Match Printer Settings to Continuous Mode
Even with the perfect PDF template, your printer needs to be set to continuous roll mode to work correctly:
- Open your printer’s settings (either via the device’s control panel or your OS’s printer preferences).
- Select "Continuous Paper" or "Roll Paper" as the paper type (the exact label varies by printer model).
- Disable automatic cutting settings if you don’t want the printer to slice the paper after each invoice.
Quick Testing Tips
- Do a print preview first in NetSuite to confirm the invoice content flows as a single continuous block with no extra blank space at the end.
- If you use headers/footers, note that standard
<header>and<footer>tags repeat on every "virtual page"—if you only want them once at the top/bottom of the invoice, move that content outside of the header/footer blocks.
内容的提问来源于stack exchange,提问作者Santo Varghese

