pagescale

package module
v0.0.0-...-ac52816 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2020 License: AGPL-3.0 Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

pagescale

scaling formulas for fitting images to static and dynamic gradex pages

static vs dynamic page width

pdf.gradex™ has both static and dynamic page widths. The height is always fixed - one height for portrait, the other for landscape. It's not a fundamental limitation, but for convenience, a single paper size is assumed for a given exam. It's electronic marking, at least partly, so you can always zoom in if someone sends you A3 with teeny tiny writing and it is scaled to A4. So then we get a mix of page sizes coming in - which we want to scale to page height for a dynamic page, or until the page hits the width limit of a static page.No rocket science there - just wanted a lightweight repo in which to confirm it works before embedding into the bigger work.

test output

alt text

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintImageOnDynamicPage

func PrintImageOnDynamicPage(imgPath string, pageDim geo.Dim, pdfPath string) error

func PrintImageOnStaticPage

func PrintImageOnStaticPage(imgPath string, pageDim geo.Dim, pdfPath string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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