Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 932 by
farhad.k...@gmail.com: Filled forms are printed blank
https://bugs.chromium.org/p/pdfium/issues/detail?id=932When I try to print the attached filled form, I only get the blank form. I have traced the problem to this code fragment in fpdfview.cpp:
if (flags & FPDF_ANNOT) {
pContext->m_pAnnots = pdfium::MakeUnique<CPDF_AnnotList>(pPage);
bool bPrinting = pContext->m_pDevice->GetDeviceClass() != FXDC_DISPLAY;
pContext->m_pAnnots->DisplayAnnots(pPage, pContext->m_pContext.get(),
bPrinting, &matrix, false, nullptr);
}
This code excludes widget annotations from rendering. If I change the last line to
bPrinting, &matrix, true, nullptr);
then the printed page does contain form data and the normal display doesn't seem to be affected (so far as I can tell).
I also tried FPDFPage_Flatten(page, FLAT_PRINT) on the page before rendering to the printer device context, but could not get the form data to appear. I might be doing this wrong. Thanks.
Attachments:
cardclaimform_filled.pdf 106 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