module
Version:
v0.0.0-...-cdfabb8
Opens a new window with list of versions in this module.
Published: Nov 24, 2022
License: MIT
Opens a new window with license information.
README
¶
Generate PDF files by go language
English | 简体中文
Generate PDF files by using signintech/gopdf.
Test Case Coverage:
- Set page configuration like width and height.
- test/font: Add ttf fonts, and set font.
- test/text: Write the text content include long text.
- test/line: Draw different kinds of lines.
- test/oval: Draw an oval.
- test/polygon: Draw a polygon, like triangle, pentagon.
- test/rectangle: Draw a rectangle.
- test/image: Insert images, options optional, like rotate specified degree, flip vertically or horizontally, mask, transparency.
- test/hyperlink: Add internal or external hyperlink.
- test/outline: Add outlines or called bookmark, include multi-level.
- test/compress: Set the compression level to compress the file size.
- test/protection: Set password to protect the file.
- test/import_tpl: Imported from template, which can be an existing PDF file, such as add cover.
Tips:
- The test cases are in the
gopdf_examples/test/
directory, every case will initial by its own init function.
Click to show internal directories.
Click to hide internal directories.