Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Sat Nov 08, 2014 2:46 am

I am using Spire.Pdf in evaluation mode to write some text to an existing PDF that has lots of other content already. I'm using method PdfCanvas.DrawString to write the text. The text appears but is pretty horrible in appearance.

A snippet of my code is:

var pdfBrush = PdfBrushes.Black;
var font = new Spire.Pdf.Graphics.PdfFont(PdfFontFamily.Helvetica, 10);
page.Canvas.DrawString(fieldValue, font, pdfBrush, new System.Drawing.PointF(field.XPosition, field.YPosition));

A partial screenshot of the resulting PDF is attached. The text added with Spire.Pdf is circled in blue and looks pretty crappy. Any suggestions?

shaunlandau
 
Posts: 10
Joined: Mon Jul 21, 2014 4:39 pm

Mon Nov 10, 2014 3:43 am

Hello,

Thanks for your inquiry.
I tested your code with Spire.Pdf Version:3.1.53 but didn't encounter the issue you met.
Would you please provide us with the following information to help us reproduce it?
1. spire.pdf version you used.
2. your original pdf document
3. all your code.

Thanks.

Best wishes,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2766
Joined: Wed Jun 27, 2012 8:50 am

Return to Spire.PDF