Code: Select all
gdPDF.NewPDF(true);
gdPDF.SetMeasurementUnit(PdfMeasurementUnit.PdfMeasurementUnitPoint);
gdPDF.SetOrigin(PdfOrigin.PdfOriginTopLeft);
Plugin throws odd exception when drawing any of the following characters using DrawText function: š, Š, č. Č, ć, Ć, ž, Ž, đ, Đ. Since I have no such problems when drawing to image object with GdPictureImaging class, I assume the problem is in PDF plugin and not font used. In case it matters, I used "PdfStandardFont.Helvetica";
Message: Index was outside the bounds of the array.
Source: GdPicture.NET.PDF
StackTrace: at m.e(String A_0)
at m.a(Single A_0, Single A_1, String A_2)
at GdPicture.NET.PDF.CGdPicturePDF.DrawText(Single XPos, Single YPos, String Text)
at GdPicture.GdPicturePDF.DrawText(String FontResName, Single DstX, Single DstY, String Text)
at PPI.clsIzpisDokumenta.IzdelajListoDveKoloni(GdPicturePDF gdPDF, String NaslovListe, Double startY, Double PozicijaSeparatorja, List`1 Lista, Double& currentY)
at PPI.clsIzpisDokumenta.Porocilo(List`1 Paket1, List`1 Dokument, Image Slika)