gopdf_example

module
v0.0.0-...-cdfabb8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2022 License: MIT

README

Generate PDF files by go language

English | 简体中文

Generate PDF files by using signintech/gopdf.

Test Case Coverage:
  1. Set page configuration like width and height.
  2. test/font: Add ttf fonts, and set font.
  3. test/text: Write the text content include long text.
  4. test/line: Draw different kinds of lines.
  5. test/oval: Draw an oval.
  6. test/polygon: Draw a polygon, like triangle, pentagon.
  7. test/rectangle: Draw a rectangle.
  8. test/image: Insert images, options optional, like rotate specified degree, flip vertically or horizontally, mask, transparency.
  9. test/hyperlink: Add internal or external hyperlink.
  10. test/outline: Add outlines or called bookmark, include multi-level.
  11. test/compress: Set the compression level to compress the file size.
  12. test/protection: Set password to protect the file.
  13. test/import_tpl: Imported from template, which can be an existing PDF file, such as add cover.
Tips:
  1. The test cases are in the gopdf_examples/test/ directory, every case will initial by its own init function.

Directories

Path Synopsis
pkg
gofpdi Module
test

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL