Skip to content

Commit ba083c2

Browse files
committed
Few more PDF tweaks
1 parent dcd643c commit ba083c2

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/server.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,20 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
378378
{ type: "insert", pageIndex: 0, markdown: "..." }
379379
{ type: "insert", pageIndex: 5, sourcePdfPath: "/path/to/source.pdf" }
380380
381+
PAGE BREAKS:
382+
To force a page break, use this HTML element:
383+
<div style="page-break-before: always;"></div>
384+
385+
Example:
386+
"# Page 1\\n\\n<div style=\\"page-break-before: always;\\"></div>\\n\\n# Page 2"
387+
388+
ADVANCED STYLING:
389+
HTML/CSS and inline SVG are supported for:
390+
- Text styling: colors, sizes, alignment, highlights
391+
- Boxes: borders, backgrounds, padding, rounded corners
392+
- SVG graphics: charts, diagrams, icons, shapes
393+
- Images: <img src="/absolute/path/image.jpg" width="300" /> or ![alt](/path/image.jpg)
394+
381395
Supports standard markdown features including headers, lists, code blocks, tables, and basic formatting.
382396
383397
Only works within allowed directories.

0 commit comments

Comments
 (0)