I want to write a simple program to generate a pdf file with pure text content. I am reading the pdf refernce about text and I have a few questions regarding type0 font(composite font) I hope some one can help me with :
1. Can I reference a external CIDFont file to use without knowing specific information like the fonts' width, leading parameter, etc. If not where should I look for those data to filled up the entry required by the font descriptor and font dictionary. Do I need to parse the ttf file?
2. I am confused with CIDSystemInfo Dictionaries in the Cmap and the CIDFont of a certain type0 font. Do the CIDSystemInfo Dictionaries(which specify the character collection) in these two components have to be exactly the same or they are independent of each other?
3. How should I work with Cmap to generate the text I want. For example if I want to input "你好"（hello in Chinese） to a pdf file using say Predefined CMap GB−EUC−H which use EUC-CN encoding
shoule I create a string translate it to bytes of unicode and th encode using EUC-CN finally write the bytes to the pdf file? I am programing with C# by the way.
Ah! The double-edged sword of a product being bought out and not touched by the new owners. On one side, the product works great and does everything wonderfully, on the other you'll never see any new features added to it. You also won't see their "re-envisioning" of the product either, which is usually a plus!