How can I render multiple pages project into a single pdf? #20

Open
opened 5 years ago by shen390s · 3 comments
shen390s commented 5 years ago (Migrated from github.com)

Such as I want to render https://github.com/otherjoel/try-pollen.git into a single document(such as try-pollen.pdf) to include all chapters of document.

Such as I want to render https://github.com/otherjoel/try-pollen.git into a single document(such as try-pollen.pdf) to include all chapters of document.
bluebear94 commented 3 years ago (Migrated from github.com)

I'd assume that you'd create a page that calls (dynamic-require path 'doc) (and (dynamic-require path 'metas) if you need any meta information) for each page that you want to include, then embeds each page's contents.

I'd assume that you'd create a page that calls `(dynamic-require path 'doc)` (and `(dynamic-require path 'metas)` if you need any meta information) for each page that you want to include, then embeds each page's contents.
otherjoel commented 3 years ago (Migrated from github.com)

I'd assume that you'd create a page that calls (dynamic-require path 'doc) (and (dynamic-require path 'metas) if you need any meta information) for each page that you want to include, then embeds each page's contents.

That's basically how I’m doing it in that repo, but it's even faster to skip dynamic-require altogether and use select-from-doc etc. directly on the files. As the docs note, using Pollen's functions to retrieve doc/metas from a Pollen source is going to be faster since that way you’ll be taking advantage of Pollen’s cache.

> I'd assume that you'd create a page that calls (dynamic-require path 'doc) (and (dynamic-require path 'metas) if you need any meta information) for each page that you want to include, then embeds each page's contents. That's basically [how I’m doing it][1] in that repo, but it's even faster to skip `dynamic-require` altogether and use `select-from-doc` etc. directly on the files. As the docs [note][2], using Pollen's functions to retrieve doc/metas from a Pollen source is going to be faster since that way you’ll be taking advantage of Pollen’s cache. [1]: https://github.com/otherjoel/try-pollen/blob/52e2066aa58c7cfa3003ad2566b9606b478779fd/flatland/flatland-book.ltx.pp#L20-L29 [2]: https://docs.racket-lang.org/pollen/Cache.html#%28part._cache._.Functions%29
bluebear94 commented 3 years ago (Migrated from github.com)

Right, I almost forgot about select-from-doc.

Right, I almost forgot about `select-from-doc`.
This repo is archived. You cannot comment on issues.
No Milestone
No project
No Assignees
1 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: mbutterick/pollen-users#20
Loading…
There is no content yet.