Skip to content

Commit

Permalink
Merge pull request #19 from uptick/feat/papersize-4
Browse files Browse the repository at this point in the history
feat(playwright): pdf options aren't str,str
  • Loading branch information
uptickmetachu authored May 16, 2024
2 parents 9a9032c + 9bb5a32 commit 1ceae0d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lambda_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
from collections.abc import Iterator, Mapping
from contextlib import contextmanager
from dataclasses import dataclass, field
from typing import Any
from urllib.parse import urlparse

import boto3
Expand Down Expand Up @@ -53,7 +54,7 @@ class Payload(pydantic.BaseModel):
## Browse the document in a browser before rendering
browser_url: str | None = None
browser_headers: dict = pydantic.Field(default_factory=dict)
browser_pdf_options: Mapping[str, str] = pydantic.Field(default_factory=dict)
browser_pdf_options: Mapping[str, Any] = pydantic.Field(default_factory=dict)
renderer: Renderers = Renderers.princexml

# Output parameters
Expand Down

0 comments on commit 1ceae0d

Please sign in to comment.