orcgen

module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2023 License: MIT

README

Orcgen Project

Orcgen is a Go package that enables the conversion of web pages and HTML content to various file formats like PDF, PNG, and JPEG. It provides an easy-to-use interface for generating these file formats from web pages and HTML.

Functionalities

Orcgen provides the following functionalities:

  • Conversion of HTML content to PDF, PNG, and JPEG files.
  • Conversion of web pages to PDF, PNG, and JPEG files.
  • The package provides functions to convert HTML content and web pages to the desired file format.
  • The ability to configure the conversion process by setting parameters like load timeout and page idle time.
  • The package supports the creation of full-page screenshots of web pages.

Installation

To use Orcgen, you can install it via Go modules:

    go get github.com/luabagg/orcgen

Then you can import it in your Go code:

    import "github.com/luabagg/orcgen"

Example Usage

The package comes with examples that demonstrate the usage of the various functions and features provided by Orcgen.

You can see it in examples page.

Contributors

This project is an open-source project, and contributions from other developers are welcome. If you encounter any issues or have suggestions for improvement, please submit them on the project's GitHub page.

Directories

Path Synopsis
package internal contains the rod and builder implementation.
package internal contains the rod and builder implementation.
generator
package generator contains builders used for page conversion (example HTML to PDF).
package generator contains builders used for page conversion (example HTML to PDF).
generator/jpeg
package jpeg implements the builder for JPEG files.
package jpeg implements the builder for JPEG files.
generator/pdf
package pdf implements the builder for PDF files.
package pdf implements the builder for PDF files.
generator/png
package png implements the builder for PNG files.
package png implements the builder for PNG files.
pkg
orcgen generates files from HTML - any static webpage can be informed, or even an HTML file.
orcgen generates files from HTML - any static webpage can be informed, or even an HTML file.
director
package director provides functionality for generating files from HTML using the Rod package.
package director provides functionality for generating files from HTML using the Rod package.

Jump to

Keyboard shortcuts

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