Skip to content

Document which input APIs extract HTML meta tag options - #280

Open
Aschenbath wants to merge 1 commit into
JazzCore:masterfrom
Aschenbath:docs/meta-options-string-input-254
Open

Aschenbath wants to merge 1 commit into
JazzCore:masterfrom
Aschenbath:docs/meta-options-string-input-254

Conversation

@Aschenbath

Copy link
Copy Markdown

Document that PDFKit extracts HTML meta tag options only for from_string. Explain how file/URL callers can pass options explicitly, and show how to read a local file into a string when meta tag options are wanted. The example also notes the encoding and relative-resource consequences of string input.

Fixes #254 by documenting the existing API contract and the file-input workaround.

Validation: checked option extraction for string, file-like and URL inputs, and explicit file options through command construction, without launching a renderer. Reviewed reStructuredText markup; git diff --check passes. README-only change; no documentation build.

Edited and verified with OpenAI Codex assistance.

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

Successfully merging this pull request may close these issues.

Options through meta tags only works while generating from string

1 participant