Page 1 of 1

print problem after Microsoft update KB5000802

Posted: Thu Mar 18, 2021 12:27 pm
by aleksand
Hi,

I use coreApi sdk. I do print use like code:
if (::StartDoc(pdx->hDC, &di) > 0)
{
for (int page=fromPage-1; page<toPage; page++){
...
CRect DrawRect(0, 0, W, H);
CComPtr<PXC::IPXC_OCContext> pROpt;
g_Inst->CreateStdOCCtx(&pROpt);
pROpt->put_PrintContentFlags(PXC::RenderType_ModePrint);
::StartPage(pdx->hDC)
hr=pPage->DrawToDevice((PXC::HANDLE_T)pdx->hDC, &DrawRect, &dm, PXC::DDF_AsVector |PXC::DDF_EmbeddedFontAsCurves,
nullptr, pROpt, nullptr);
::EndPage(pdx->hDC);
}
}

Before update w10 from Microsoft all is working fine. After update ( KB5000802) in some document print began work incorrect (some pages is clean and after it application can not print any new document also my application can hang after this bug). I investigate the problem and has following result:
1) After this problem application can not create new printdialog for print (so no print)
2) It depend from documents and printers (I check 2 printers xchange and acrobat. The acrobut printer has very strange result (::EndPage(pdx->hDC) return -1). Xchange return correct result of ::EndPage but some page was empty and application will hang after some times).
3) If comment pPage->DrawToDevice all is working correct (my additional info like watermark is printed and no hang)
4) if I remove PXC::DDF_AsVector (prom call parameter "pPage->DrawToDevice") all will work correct also but time will biger.
5) DrawToDevice method working is not good for draw also (can crash after incorrect print) but I can change it to IIXC_Page::DrawToIXCPage and save it to png image. Unfortunately (as I understand sdkhelp) IIXC_Page::PrintToDC has not parameter for print as vector so this solution is bad for print.

p.s. Update KB5001567 do not fix this problem (only made it difficult to reproduce for some files).
p.s.s. I ckeck last version of xchangeApi and had the same result.

Thanks,
Evgeny.

Re: print problem after Microsoft update KB5000802

Posted: Thu Mar 18, 2021 1:15 pm
by Stefan - PDF-XChange
Hello Evgeny,

We are aware of the hotfix, and are sorry to hear that you've started having problems. We are investigating the effects this hotfix has on our products, and will try to find a solution!

Kind regards,
Stefan

Re: print problem after Microsoft update KB5000802

Posted: Fri Mar 19, 2021 9:39 am
by BigMike
Just as a hint: Microsoft patched again, there's now a patch for the patch for the patch... (it's KB5001649 for Win 10 20H2)

Re: print problem after Microsoft update KB5000802

Posted: Fri Mar 19, 2021 9:57 am
by aleksand
Hi Stefan,

Thanks a lot. I check last version of PDF-XChange editor. It also has like problem after some times (see scrinshort).
hang.png
p.s. BigMike thanks a lot I will check this update from Microsoft.

Thanks,
Evgeny.

print problem after Microsoft update KB5000802

Posted: Fri Mar 19, 2021 10:07 am
by Sasha - PDF-XChange
:)

Re: print problem after Microsoft update KB5000802

Posted: Mon Mar 22, 2021 7:55 am
by Sasha - PDF-XChange
Hello guys,

The Microsoft has maid another fix for the fix :)
Here's the link to our news page:
https://www.pdf-xchange.com/compan ... s/view/253

Cheers,
Alex

Re: print problem after Microsoft update KB5000802

Posted: Fri Apr 02, 2021 11:05 am
by aleksand
Hi,

Thanks a lot. Own tests show that after last update of microsoft all is working.

p.s. Please close the topic. (I do not found like button).

Thanks,
Ecgeny.

print problem after Microsoft update KB5000802

Posted: Fri Apr 02, 2021 11:08 am
by Sasha - PDF-XChange
:)