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

Feature: export only one page, or a selection of pages #32

Open
Anasme opened this issue Dec 22, 2020 · 5 comments
Open

Feature: export only one page, or a selection of pages #32

Anasme opened this issue Dec 22, 2020 · 5 comments
Assignees

Comments

@Anasme
Copy link

Anasme commented Dec 22, 2020

Hello,

Your plugin look great, and work great.

But we need to export only one page or some pages that we choose. Our documentation website is huge and we don't need to export the full content...

I took a look on pdf export plugin but the export look weird with a lot of "bug", the issues are not processed as what I saw.

Do you think it's possible to get this option?

Thanks in advance !

@comwes comwes added this to the Version 1.1.0 milestone May 9, 2021
@comwes comwes self-assigned this May 18, 2021
@comwes
Copy link
Owner

comwes commented May 18, 2021

Hi @Anasme

Currently you have the ability to disable the generation of pdf on a specific page by using meta in your markdown file as described in the documentation (https://comwes.github.io/mkpdfs-mkdocs-plugin/getting-started.html#hide-file-content-from-the-generated-pdf)

But I think to ease the process, I'll keep the previous behaviour as default and implement the following in case you only want to generate a combined pdf for few pages:

Expose a configuration called meta_only which if set to True, the pdf will be generated only for pages where a meta pdf has been defined and set to True.

Does this sounds ok to you?
Thanks for your answer.

@comwes
Copy link
Owner

comwes commented Jul 5, 2021

@Anasme I'm keeping this feature on hold for another release.

@comwes comwes removed this from the Version 1.1.0 milestone Jul 5, 2021
@jvleminc
Copy link

Thanks to the above comment I found the "PDF: False" meta data, but this still prints the page/section header (followed by no content).

@comwes
Copy link
Owner

comwes commented Jul 14, 2021

The upcoming version.

I've tested this, and seems that it's fixed in the upcoming version 1.1.0.
I'm joining the working source code with the generated pdf.

test.zip

KR,
Gerry Ntabuhashe

@jvleminc
Copy link

LGTM, thanks.

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

No branches or pull requests

3 participants