Skip to content

Commit

Permalink
feat (gui) : pdf preview in high resolution
Browse files Browse the repository at this point in the history
feat (gui) : pdf preview in high resolution
  • Loading branch information
reycn authored Dec 19, 2024
2 parents d0b8e42 + 448eae5 commit 8f585b8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pdf2zh/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,10 @@ def progress_bar(t: tqdm.tqdm):
.progress-bar {
border-radius: 8px !important;
}
.pdf-canvas canvas {
width: 100%;
}
"""

demo_recaptcha = """
Expand Down Expand Up @@ -498,7 +502,7 @@ def on_select_page(choice):

with gr.Column(scale=2):
gr.Markdown("## Preview")
preview = PDF(label="Document Preview", visible=True)
preview = PDF(label="Document Preview", visible=True, height=2000)

# Event handlers
file_input.upload(
Expand Down

0 comments on commit 8f585b8

Please sign in to comment.