Status: Unconfirmed
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 1613 by gdv1...@
gmail.com: FPDF_RenderPage() method takes a long time to render the page
https://bugs.chromium.org/p/pdfium/issues/detail?id=1613What steps will reproduce the problem?
Run the following test with the attached PDF:
TEST_F(CPDFParserEmbedderTest, CantRenderPdf) {
auto start = high_resolution_clock::now();
EXPECT_TRUE(EmbedderTest::OpenDocument(
"example_1.pdf"));
FPDF_PAGE page = EmbedderTest::LoadPage(0);
ASSERT_TRUE(page);
ScopedFPDFBitmap page_bitmap = EmbedderTest::RenderPage(page);
auto stop = high_resolution_clock::now();
auto duration = duration_cast<microseconds>(stop - start);
cout << "Time taken by function: " << duration.count() << " microseconds"
<< endl;
WriteBitmapToPng(page_bitmap.get(), "results.png");
}
What is the expected output? What do you see instead?
Expected image with page content, but FPDF_RenderPage() freezes/never returns results.
What version of the product are you using? On what operating system?
PDFium v4103. OS Windows 10.
Please provide any additional information below.
Acrobat Reader can open this PDF
Attachments:
example_1.pdf 522 KB
example_2.pdf 522 KB
example_3.pdf 522 KB
--
You received this message because:
1. The project was configured to send all issue notifications to this address
You may adjust your notification preferences at:
https://bugs.chromium.org/hosting/settings