We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Is It possible to Draw BarCode using 5.1.1.47 Version in PDF

Thread ID:

Created:

Updated:

Platform:

Replies:

79767 Feb 25,2009 05:49 AM Mar 5,2009 04:11 AM Windows Forms 5
loading
Tags: PDF
Administrator [Syncfusion]
Asked On February 25, 2009 05:49 AM

Hi,
Is it possible to draw Barcode in PDF using 5.1.1.47 version.

At Persent PDf in Syncfusion 5.1.1.47 IPDFGraphics doe not implement the following method which is implemented by Graphics class

g.MeasureString(curString, valueRect.Size, fieldValuePDFStringFormat, out charsFitted, out linesFilled)

Is It possible to You add the above Method to IPDFGraphics .

I am testing You are product if it meets our requriment we would like to buy the product.



Administrator [Syncfusion]
Replied On February 26, 2009 02:23 AM

Hi,
Any can help ?
Is it possible to draw Barcode in PDF using 5.1.1.47 version.

At Persent PDf in Syncfusion 5.1.1.47 IPDFGraphics does not implement the following method which is implemented by Graphics class

g.MeasureString(curString, valueRect.Size, fieldValuePDFStringFormat, out charsFitted, out linesFilled)

Is It possible to You add the above Method to IPDFGraphics . Is there any alternative methods provide by Syncfusion.

Syncfusion 5.1.1.47 supporst unicode characters?

I tried to draw text using DrawMultiText but it could not able to print or write please go through the below code.

PDFDocument doc = new PDFDocument();
IPDFPage page = doc.Pages[0];
IPDFFont font = new Font("Arial",12);
IPDFGraphicState ti = doc.CreateGraphicState();
ti.TextAlignment = TextAlignment.Right;
RectnagleF rectF = new RectangleF(0,20,436,page.DrawingHeight);
doc.Graphics.DrawMultiText(rectF,"SyncfusionTesting"font,ti)
but when change the Rectangle Height
i.e rectF = new RectangleF(0,20,436,page.DrawingHeight-50)
then it is displaying text or Writting Text.Why?

I am testing You are product if it meets our requriment we would like to buy the licensed software.




Geetha M [Syncfusion]
Replied On February 26, 2009 12:31 PM

Hi Minnu,

Thank you for your interest in Syncfusion products.

From version 5.2 (next version of v5.1), Essential PDF is completely re-written and so the previous versions of PDF is not supported. I recommend you to use our new PDF and you can check our latest version Essential Studio 2009 Volume 1 in the forum thread linked below:
http://www.syncfusion.com/support/forums/message.aspx?MessageID=79036

Also you can check our online samples in the link below:
http://samples.syncfusion.com/ASPNET/7.1.0.21/Web/pdf.web/samples/3.5/Default.aspx

You can find the BarCode sample here.

Please let me know if you have any questions.

Regards,
Geetha


Administrator [Syncfusion]
Replied On February 27, 2009 08:11 AM

Hi Geetha,

Thanks for quick reply is there any alternative methods which meets the functionality of below method.

g.MeasureString(fieldValue, fieldValueFont, layoutArea,fieldValueStringFormat, out charsFitted, out linesFilled);

This method returns no.of characters fits the
layout area and lines.

But in Syncfusion 5.1.1.47 version does not have or support for the above method is there any way to achieve the above functionality with the syncfusion 5.1.1.47.we would like to take license if the present version supports the above functionality

Regards
Minnu


Geetha M [Syncfusion]
Replied On March 2, 2009 08:38 AM

Hi,

Thank you for the details.

I am working on this and will get back to you tomorrow.

Regards,
Geetha


Sri Subhashini M [Syncfusion]
Replied On March 5, 2009 04:11 AM

Hi Minnu,

Sorry for the long delay in getting back with you.

1. Measuring Text

We can calculate the size of the text by using the method MeasureString() in PdfFont class. Kindly use the below codes to measure the size of the text,

PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 8);
SizeF size = font.MeasureString(footerText);

Please do find the sample which demonstrates the above mentioned features and let me know if this helps,

http://www.syncfusion.com/uploads/redirect.aspx?file=79767_Sample_7330c226.zip&team=support

Regards,
Suba


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;