Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Number of Pages issues (--nup) #395

Open
drlouie opened this issue Aug 19, 2020 · 4 comments
Open

Number of Pages issues (--nup) #395

drlouie opened this issue Aug 19, 2020 · 4 comments
Assignees
Labels
enhancement New feature or request priority-low
Milestone

Comments

@drlouie
Copy link

drlouie commented Aug 19, 2020

I've never tried the "Number of Pages" feature for HTMLDoc, however I've been using HTMLDoc for over a decade and a half, and its been quite instrumental in a lot of my web-facing information system projects. Thank you, for creating and maintaining HTMLDoc, Mr. Michael Sweet.

The Issue

"--nup 4" sizes down my pages to a quarter width/height, however it still parses all pages individually, yet 1/4 the original size. I'm guessing I'm missing something with margins/padding etc. Any idea?

I'm using FreeBSD, Apache, PHP or Perl, command line.

"/usr/local/bin/htmldoc --format pdf14 --compression=9 --nup 4 --quiet --pagelayout document --header ... --footer ... --bottom 1px --left 36px --top 1px --webpage -f docs/catalog/VernonFinneyArt-product-catalog.pdf docs/catalog/182.html docs/catalog/185.html docs/catalog/184.html docs/catalog/186.html"

Something to note: When I mouse over on the document, when displayed in the proper browser, mine is Firefox/Win 10, I get a mouse-over effect for each page's content, however it is off center from the content itself. This is definitely connected to the problem I am experiencing in outputting multiple pages into one document. How to fix, though. Any help will be greatly appreciated, thank you.

Do note: If I figure this out, I will post the fix here.

VernonFinneyArt-product-catalog.pdf

VernonFinneyArt-product-catalog-screenshot

@drlouie
Copy link
Author

drlouie commented Aug 19, 2020

BTW: Here are some walk-through documents for installing and trying HTMLDoc on various operating systems, something I wrote for Vultr early last year:

https://www.vultr.com/docs/htmldoc-pdf-from-html-markup-unix-freebsd
https://www.vultr.com/docs/install-htmldoc-on-centos-7
https://www.vultr.com/docs/install-htmldoc-on-debian-9
https://www.vultr.com/docs/install-htmldoc-on-ubuntu-18-04

@michaelrsweet
Copy link
Owner

@drlouie I think the issue is that each file starts the number-up layout on a fresh page.

@michaelrsweet michaelrsweet self-assigned this Aug 27, 2020
@michaelrsweet michaelrsweet added the enhancement New feature or request label Aug 27, 2020
@michaelrsweet michaelrsweet added this to the Future milestone Aug 27, 2020
@drlouie
Copy link
Author

drlouie commented Aug 27, 2020

@michaelrsweet

Thank you, for everything! So, I went ahead and left it as one page per product, just changed the order to reflect the order in which the printer will be printing out the PDF document in creating a catalog booklet. HTMLDoc is stamped on all pages too, for you definitely deserve credit, Mr. Sweet.

https://vernonfinneyart.com/docs/catalog/VernonFinneyArt-product-catalog_BOOK.pdf

@michaelrsweet
Copy link
Owner

@drlouie Your catalog looks great! And thank you for the mention in the footer! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request priority-low
Projects
None yet
Development

No branches or pull requests

2 participants