Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How get useful data from PostScript format file(.ps)?  RSS feed

 
Jinsong Fu
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i want to get useful data from a PostScript format file(.ps),and use the data to calculate.
thanks a lot!
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You'll need to tell us a lot more about what's in the PostScript file if you really want any help.
In case you are not aware, PostScript is actually a programming language, optimized for describing pages of text. ".ps" files are programs in that language, which when evaluated by a printer (or other 'rasterizer') produce an image.
If all the documents you wish to extract information from are produced by the same application, you may be able to make some assumptions about how the PostScript "program" is arranged, and just extract the data you want. But there is no general answer to this problem.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!