CVS commit by eros: Added a hack because real pdf's HL-QuadPoint structure differs from the one in specs! (how can it be possible!?) M +6 -0 generator_pdf.cpp 1.20.2.10 --- kdegraphics/kpdf/core/generator_pdf/generator_pdf.cpp #1.20.2.9:1.20.2.10 @@ -1087,4 +1087,10 @@ void PDFGenerator::addAnnotations( Page XPDFReader::transform( MTX, c[ q + p*2 ], c[ q + p*2 + 1 ], &quad.points[ p ].x, &quad.points[ p ].y ); + // ### PDF1.6 specs says that point are in ccw order, but in fact + // points 3 and 4 are swapped in every PDF around! + NormalizedPoint tmpPoint = quad.points[ 2 ]; + quad.points[ 2 ] = quad.points[ 3 ]; + quad.points[ 3 ] = tmpPoint; + // initialize other oroperties and append quad quad.capStart = true; // unlinked quads are always capped quad.capEnd = true; // unlinked quads are always capped