Qu

pdf.delete_page

Builtin index · File I/O

result = pdf.delete_page(src, page)

Input: src, page · Output: result

What it is

Removes page. Every other page's own resources, fonts and content are untouched. Deleting a document's only page is refused by name -- a zero-page PDF is not a document any reader can open.

Overloads

One call shape — this function is not overloaded.

CodeInputOutputDescription
result = pdf.delete_page(src, page)
src —not documented yet
page —Removes page.
result Vec
Returns a Vec of bytes, the new PDF.

Examples

No documentation example calls this form yet. The File I/O chapter is where one belongs.