New to Itext so I assume that both of these problems are down to my basic
(mis)understanding. Given the following C# code:
BaseFont customfont =
BaseFont.CreateFont(@"c:\windows\fonts\BuxtonSketch.ttf", BaseFont.CP1252,
BaseFont.EMBEDDED);
Document doc = new Document();
var writer = PdfWriter.GetInstance(doc, new
FileStream(@"F:\Test\Font.pdf", FileMode.Create));
writer.CompressionLevel = PdfStream.NO_COMPRESSION;
doc.Open();
var cb = writer.DirectContent;
PdfTemplate template = cb.CreateTemplate(10000, 10000);
template.BeginText();
template.SetFontAndSize(customfont, 22);
template.ShowText("Testing..");
//label.SetFontAndSize(customfont, 12);
//label.ShowText("123..");
template.EndText();
cb.AddTemplate(template, 100, 200);
doc.Close();
(a) the descender in 'Testing' is not showing
(b) if I uncomment the lines which add "123" to the template then all output
is compressed.
What am I doing wrong,
Thx...
--
View this message in context:
http://itext-general.2136553.n4.nabble.com/Problem-with-descenders-and-compression-tp4657227.html
Sent from the iText - General mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery
and much more. Keep your Java skills current with LearnJavaNow -
200+ hours of step-by-step video tutorials by Java experts.
SALE $49.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122612
_______________________________________________
iText-questions mailing list
[email protected]
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