Skip to content

Skip GeneratePdf when the pdf target is excluded#463

Merged
SimonCropp merged 1 commit into
mainfrom
Skip-GeneratePdf-when-the-pdf-target-is-excluded
Jul 11, 2026
Merged

Skip GeneratePdf when the pdf target is excluded#463
SimonCropp merged 1 commit into
mainfrom
Skip-GeneratePdf-when-the-pdf-target-is-excluded

Conversation

@SimonCropp

Copy link
Copy Markdown
Member

The converter now checks settings.IsTargetExcluded("pdf") and skips the document.GeneratePdf() call plus the pdf target when the pdf is excluded via ExcludeTargets. The rendered pages and info still verify. Adds an ExcludePdf sample and a readme section.

The converter now checks settings.IsTargetExcluded("pdf") and skips the
document.GeneratePdf() call plus the pdf target when the pdf is excluded
via ExcludeTargets. The rendered pages and info still verify. Adds an
ExcludePdf sample and a readme section.
@SimonCropp SimonCropp added this to the 2.7.0 milestone Jul 11, 2026
@SimonCropp SimonCropp merged commit e0f0efe into main Jul 11, 2026
3 of 5 checks passed
@SimonCropp SimonCropp deleted the Skip-GeneratePdf-when-the-pdf-target-is-excluded branch July 11, 2026 11:50
@github-actions github-actions Bot restored the Skip-GeneratePdf-when-the-pdf-target-is-excluded branch July 11, 2026 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant