Skip to content

Commit

Permalink
Merge pull request #1044 from expectedparrot/pdf_file_store
Browse files Browse the repository at this point in the history
Fix PDF File Store issue
  • Loading branch information
apostolosfilippas authored Sep 16, 2024
2 parents b4db374 + c563f48 commit 48d52f9
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions edsl/scenarios/FileStore.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,16 @@ def view(self):


class PDFFileStore(FileStore):
def __init__(self, filename):
super().__init__(filename, suffix=".pdf")
def __init__(
self,
filename,
binary: Optional[bool] = None,
suffix: Optional[str] = None,
base64_string: Optional[str] = None,
):
super().__init__(
filename, binary=binary, base64_string=base64_string, suffix=".pdf"
)

def view(self):
pdf_path = self.to_tempfile()
Expand Down

0 comments on commit 48d52f9

Please sign in to comment.