Geertjan's Blog

  • August 28, 2009

Turn PS into PDF

Geertjan Wielenga
Product Manager
Made a small plugin that lets me generate PDF from PS, via the "ps2pdf" utility on Ubuntu (and probably other Linuxes and other os'es):

Aside from the NetBeans API classes relating to files, I used the following for the above integration:

  • org.netbeans.api.progress.ProgressHandle
  • org.netbeans.api.progress.ProgressHandleFactory
  • org.openide.execution.NbProcessDescriptor
  • org.openide.util.RequestProcessor
  • org.openide.windows.IOProvider
  • org.openide.windows.InputOutput
  • org.openide.windows.OutputWriter

As a result, I can write the output from the external process to the Output window in the IDE, I prevent the GUI from hanging while the processing occurs, and I integrate with the IDE's progress bar.

Join the discussion

Comments ( 2 )
  • David Thursday, September 3, 2009

    Geertjan, this would be great as a tutorial for progress handling

  • Marco Hunsicker Monday, September 14, 2009

    Cool! Is this Plug-in available for download? Thanks.

Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.