Skip to content

Commit

Permalink
Merge pull request #4420 from JuergenGleiss/master
Browse files Browse the repository at this point in the history
Windows client: printing to local device throws an exception in PDFIUM_Print.exe
  • Loading branch information
totaam authored Nov 16, 2024
2 parents 2eb863a + 97897b4 commit 7f80aeb
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 @@ -145,10 +145,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 7f80aeb

Please sign in to comment.