Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Adobe Technologies
  4. generating pdf file by code

generating pdf file by code

Scheduled Pinned Locked Moved Adobe Technologies
csharphelptutorialquestion
1 Posts 1 Posters 4 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    frankzheng329
    wrote on last edited by
    #1

    Hi guys, 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. I appreciate your help thanks.

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups