iTextSharp international text

The key for proper display of alternate characters sets (Russian, Chinese, Japanese, etc.) is to use IDENTITY_H encoding when creating the BaseFont. Dim bfR As iTextSharp.text.pdf.BaseFont bfR = iTextSharp.text.pdf.BaseFont.CreateFont(“MyFavoriteFont.ttf”, iTextSharp.text.pdf.BaseFont.IDENTITY_H, iTextSharp.text.pdf.BaseFont.EMBEDDED) IDENTITY_H provides unicode support for your chosen font, so you should be able to display pretty much any character. I’ve used it for Russian, … Read more

Margins parameters for Google spreadsheet export as PDF

Actually, it’s possible to set the margins and create a PDF. You just need to know the names of the parameters and their possible values. I’ve have got it to work with these Parameters: &format=pdf //export format &size=a4 //A3/A4/A5/B4/B5/letter/tabloid/legal/statement/executive/folio &portrait=false //true= Potrait / false= Landscape &scale=1 //1= Normal 100% / 2= Fit to width / … Read more