Hi,
We are using iTextSharp to write out pdfs, however there was an issue with
precision.
We enabled ByteBuffer.HIGH_PRECISION, but also needed to make the following
code change to PdfContentBytes.cs
(Basically so we can pass in double precision values).
public void LineTo(float x, float y) {
LineTo((double)x,(double)y);
}
public void LineTo(double x, double y) {
if (inText) {
if (IsTagged()) {
EndText();
} else {
throw new IllegalPdfSyntaxException(
MessageLocalization.GetComposedMessage("path.construction.operator.inside.text.object"));
}
}
content.Append(x).Append(' ').Append(y).Append("
l").Append_i(separator);
}
public void MoveTo(float x, float y) {
MoveTo((double)x,(double)y);
}
public void MoveTo(double x, double y)
{
if (inText)
{
if (IsTagged())
{
EndText();
}
else
{
throw new IllegalPdfSyntaxException(
MessageLocalization.GetComposedMessage("path.construction.operator.inside.text.object"));
}
}
content.Append(x).Append(' ').Append(y).Append("
m").Append_i(separator);
}
If you'd like to apply those changes (and I guess to the other drawing
functions too) that would be great.
Kind Regards
Mark Duffill
Mark Duffill
Programmer
Development Team
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php