Converter arquivos Post Script (PS) para PDF no Linux

Estava eu, com 3 arquivos .ps para imprimir. E infelizmente, neste mundo cruel, minha impressora parou de funcionar. Kaput! E o único computador aqui de casa com imporessa é da minha mãe e usa windows. Como não queria instalar nenhum programa naquele computador e sabendo que ela tem um leitor de pdf, decidi pesquisar como converter um arquivo ps para pdf.

Após árduas buscas e diversos “gs –help” para entender os comandos malucos, concluo que o comando correto é:

gs -dBATCH -dNOPAUSE -sOutputFile=saida.pdf -sDEVICE=pdfwrite -q rel1.ps

Como não adianta dar o peixe sem explicar como ele é feito, os parâmetros deste comando são:

-dBATCH : finaliza a execução depois da última página
-dNOPAUSE : não espera confirmação do usuário (um “enter”) depois de processar cada página.
-sOutputFile=saida.pdf : arquivo de saída, neste caso, o resultado é salvo em saida.pdf
-sDEVICE=pdfwrite : ai está a mágica! Diz para usar o pdfwrite para salvar o arquivo. Fantástico!
-q : diz para não ficar mostrando informações extras. Se algo der errado, não use este parâmetro para saber “o que” deu errado.
rel1.ps : arquivo de entrada. É possível usar “*.ps” para pegar todos os arquivos .ps do diretório e etc…

Divirta-se, e nada de gastar dinheiro comprando ferramentas que fazem o que você pode fazer num simples comando!

9 thoughts on “Converter arquivos Post Script (PS) para PDF no Linux

  1. It’s really a cool and useful piece of information. I’m happy that you
    simply shared this useful info with us. Please stay us up to date like
    this. Thanks for sharing.

  2. With havin so much content do you ever run into any issues of
    plagorism or copyright infringement? My blog has a lot of completely unique content I’ve either written myself or outsourced but it appears a lot of it is popping it up all over the web without my authorization. Do you know any ways to help stop content from being stolen? I’d
    certainly appreciate it.

  3. Do you mind if I quote a few of your posts as long as I provide credit and
    sources back to your webpage? My blog is in the exact same niche as yours and my visitors would genuinely benefit
    from some of the information you present here. Please let me know
    if this alright with you. Cheers!

  4. Great site you have here but I was curious about if you knew of any community
    forums that cover the same topics discussed here? I’d really like to be a part of online community where I can get feed-back from other knowledgeable people that share the same interest. If you have any recommendations, please let me know. Thank you!

  5. Would you mind if I quote a couple of your articles or blog posts as long as
    I provide credit and sources back to your website:
    https://pihisall.wordpress.com/2009/11/17/converter-arquivos-post-script-ps-para-pdf-no-linux/.
    I will aslo make certain to give you the proper anchor text hyperlink using
    your website title: Converter arquivos Post Script (PS) para PDF no Linux | Pih is All.
    Please be sure to let me know if this is ok with you. Thanks alot :)

  6. I know this if off topic but I’m looking into starting my own weblog and was wondering what all is needed to get set up? I’m assuming having a blog like yours would cost a pretty penny?
    I’m not very internet savvy so I’m not 100% positive.
    Any suggestions or advice would be greatly appreciated.
    Cheers

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s