• Post Reply Bookmark Topic Watch Topic
  • New Topic

PS files to plain text

 
hatim osman
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there�

I am doing a program that should converts the content of a PostScript file that contains text. I am trying to employ the Java Print Service API. But I failed, the lookStreamPrintServiceFactories() does not return any factory! Here is my code:

DocFlavor postscriptFlavor = DocFlavor.INPUT_STREAM.POSTSCRIPT;
DocFlavor desiredFlavor = DocFlavor.BYTE-ARRAY.PLAIN_TEXT_US_ASCII;

//here is a problem here, an empty array is always returned


thanks in advance
hatim
 
Joe Ess
Bartender
Posts: 9362
11
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have a look at this post
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!