Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

Add landscape and page size support to weaver #176

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

szeber
Copy link

@szeber szeber commented Aug 30, 2018

Weaver doesn't support setting the page size and the page orientation to the cli.

On a related side note the cli's switch for the page orientation is not the same as wkhtmltopdf's so that prevents it from being a drop in replacement.

}

// constructCMD returns a string array containing the AthenaPDF command to be
// executed by Go's os/exec Output. It does this using a base command, and path
// string.
// It will set an additional '-A' flag if aggressive is set to true.
// See athenapdf CLI for more information regarding the aggressive mode.
func constructCMD(base string, path string, aggressive bool) []string {
func constructCMD(base string, path string, aggressive bool, noPortrait bool, pageSize string) []string {
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also IMHO this method should receive the AthenaPDF instance and take the params from there. Not sure why the struct was split out to separate params.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant