Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Won't Fix
-
Affects Version/s: 4.0
-
Fix Version/s: None
-
Component/s: Core/Parsing
-
Labels:None
-
Environment:Printing to Windows XPS or fax virtual printers
-
Workaround Exists:Yes
-
Workaround Description:
Description
A few clients have sent us PDF samples that render correctly on screen but are subject to clipping problems when printing.
Issue Links
- blocks
-
PDF-437 Printing Using IcePDF Pro cuts the text or removes the text in the middle of ocument.
- Closed
After a lot of testing and looking around it appears that for some reason the windows print driver is treating the clip incorrectly. Setting a clip seems to clear all previously drawn print data. The problem is that I can't figure out the trigger, in the document in question it shows up on the 12th page, caries the same clip over to the 13th page and that start working correctly on the 14th.
The last element to be drawn on the 12th page is a as follows:
934 0 obj <</Type/XObject/Resources<</ProcSet[/PDF/Text]/Font<</Helv 1038 0 R>>>>/Subtype/Form/BBox[0.0 0.0 168.546 19.35]/Matrix[1.0 0.0 0.0 1.0 0.0 0.0]/FormType 1/Length 92>>stream
/Tx BMC
q
1 1 166.546 17.35 re
W
n
BT
/Helv 12 Tf
0 g
2 5.223 Td
(08443571622) Tj
ET
There is nothing special going on here but with W gets processed the rest of the page goes missing during the print. Strangely this content is more or less painted on every page but doesn't always cause the issue.
Couldn't find any bug report out there for this rare condition. I've added a new system property org.icepdf.core.paint.disableClipping that disables clipping for client that need a quick fix. Alternatively a client can update the PrintHelper to paint to an image first then print the image, however the quality is not as good in such a case.