addText problem
Brought to you by:
dogcane
1. I have installed successfully sharpPdf v.2 beta 2
(release).
2. I attempt to use this pdf from scratch. When using
of the addText method of the pdfPage I got the
problem:
I wrote:
pdfDocument doc = new pdfDocument("Title","Boris");
pdfPage pg = doc.addPage
(sharpPDF.Enumerators.predefinedPageSize.csA4Page);
?????????????
pg.addText("Text to write",50,50,?????,22);
Which object I have to define and put instead ?????
(pdfAbstractFont or pdfPredefinedFont or anything
alse)?
When I attempt put pdfPredefinedFont,csHelvetica (as
written in the tutorial), I, of course get compiler
error.
The documentation doesn't help!! it is vey short and
explain nothing!
Thank you very much.
Boris
Logged In: NO
Put something like the following:
myPage.addText("Hello World!", 200, 450,
myDoc.getFontReference
(sharpPDF.Enumerators.predefinedFont.csHelvetica), 20)
Logged In: YES
user_id=1194940
Originator: NO
Boris, try this with the font problem:
pg.addText("Text to write",50,50,doc.getFontReference(pdfPredefinedFont,csHelvetica),22);
You're right, the documentation is short. But you may think that it's a free open source project... so, please be patient ;-)
Hello All, i am using the Sharp pdf with Unity3d but me facing some issues can anyone help me out, here are the questions :-
Can anyone please help me out, it would be great help....Thank you in advance.