Pdfium draws very large pages

37 views
Skip to first unread message

吴吴

unread,
Jul 23, 2025, 11:47:23 AMJul 23
to pdfium
我在 Windows 系统上运行 x64 程序。现在我需要做一个功能,就是将PDF页面放大20倍,然后画在窗口上。PDF页面放大20倍后,页面的宽度和高度为100000*100000。使用 FPDFBitmap_CreateEx API 失败。使用 FPDF_RenderPage API 使我的程序非常慢并且有点卡住。如何在Windows程序上快速显示PDF页面的放大区域?

吴吴

unread,
Jul 23, 2025, 12:05:26 PMJul 23
to pdfium

I am running an x64 program on a Windows system. Now I need to do a function, which is to magnify the PDF page 20 times and then draw it on the window. After the PDF page is magnified 20 times, the width and height of the page are 100000*100000. Using the FPDFBitmap_CreateEx API fails. Using the FPDF_RenderPage API makes my program very slow and a bit stuck. How can I quickly display the magnified area of a PDF page on a Windows program?

geisserml

unread,
Jul 24, 2025, 3:16:31 PMJul 24
to pdfium
See https://groups.google.com/g/pdfium/c/y-Ioecf5E3c/m/cM4fIzPMAgAJ for an answer on the duplicate thread.
Reply all
Reply to author
Forward
0 new messages