Public Discussions > General Discussion

Help transforming INF to PDF

<< < (2/3) > >>

Alex Taylor:

--- Quote from: Martin Iturbide on April 10, 2015, 12:06:08 pm ---I'm not being able to make ghostcript to work fine with the PDF printers to make a direct transformation from Newview to PDF. And on other platform (for what I tried) DocView is very limited, it does not allow to print , save on other format or copy the text.

--- End quote ---

You could use a 2-step process: use Postscript printer on FILE: to print to a Postscript file from NewView.  Then use Ghostscript's lib\ps2pdf.cmd to convert the .PS file to PDF from the command line.  (This probably requires the gsx.yy\bin directory on both PATH and LIBPATH, unless you run the script itself from there.)

Martin Iturbide:
Thanks Alex. I will give it try.

Martin Iturbide:
uhm...


--- Quote ---[E:\OS2TK45\BOOK]ps2pdf addendum.ps
     1 +++   ??????parse arg params??gs = '@gsos2'?inext = '.ps'?outext = '.pdf'
??if params = '' then call usage??options = ''???i = 1?param = word(params, i)?d
o while substr(param, 1, 1) = '-'? options = options param? i = i + 1? param = w
ord(params, i)?end??infile = param?if infile = '' then call usage?outfile = word
(params, i + 1)?if outfile = '' then do? outfile = infile''outext? infile = infi
le''inext?end??gs options '-q -P- -dSAFER -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -s
OutputFile='outfile options '-c save pop -f' infile?exit??usage : ?say 'Usage: p
s2pdf [options...] input[.ps output.pdf]'?exit?;
REX0013: Error 13 running C:\programs\gs\gs9.15\lib\ps2pdf.cmd, line 1:
Invalid character in program

--- End quote ---

Martin Iturbide:
ok, I think I found a working way to make a PDF from .ps with ghostscript 9.15 and ePDF.

I will try that.

Paul Smedley:
Hey Martin,


--- Quote from: Martin Iturbide on April 12, 2015, 12:26:31 am ---ok, I think I found a working way to make a PDF from .ps with ghostscript 9.15 and ePDF.

I will try that.

--- End quote ---

FYI, I have Ghostscript 9.16 built - I just need to get around to packaging and uploading it :)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version