Skip to content

Commit

Permalink
Update pdfium.py
Browse files Browse the repository at this point in the history
* passed wrong variable to FPDF_ClosePage 
* close pdfium document
  • Loading branch information
JuergenGleiss authored and totaam committed Nov 16, 2024
1 parent 986d881 commit bb0bd50
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xpra/platform/win32/pdfium.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,11 @@ def do_print_pdf(hdc, title=b"PDF Print Test", pdf_data=None):
log("FPDF_LoadPage()=%s page %i loaded", page, i)
StartPage(hdc)
FPDF_RenderPage(hdc, page, x, y, w, h, rotate, flags)
FPDF_ClosePage(hdc)
EndPage(hdc)
FPDF_ClosePage(page)
log("FPDF_RenderPage page %i rendered", i)
finally:
FPDF_CloseDocument(doc)
EndDoc(hdc)
finally:
FPDF_DestroyLibrary()
Expand Down

0 comments on commit bb0bd50

Please sign in to comment.