mkpdfs-mkdocs-plugin icon indicating copy to clipboard operation
mkpdfs-mkdocs-plugin copied to clipboard

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

Open Anasme opened this issue 4 years ago • 5 comments

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 !

Anasme avatar Dec 22 '20 16:12 Anasme

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 avatar May 18 '21 11:05 comwes

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

comwes avatar Jul 05 '21 18:07 comwes

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

jvleminc avatar Jul 13 '21 19:07 jvleminc

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

comwes avatar Jul 14 '21 17:07 comwes

LGTM, thanks.

jvleminc avatar Jul 14 '21 18:07 jvleminc