topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Sunday May 26, 2024, 8:27 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Recent Posts

Pages: prev1 ... 5 6 7 8 9 [10]
91
We're nearly there. Changing the setting does allow the PostScript file to be kept when exporting as a PDF now.

Unfortunately, saying you don't want to keep the PostScript file will cause a previously built one to be deleted.

In other words, if it isn't set to keep PostScript files and you build a PostScript file then a PDF one (from the same man file), you lose the PostScript file.

If you build the PDF file first, you don't have this issue, of course.

Bill Gates would call this a feature, not a bug. ;)

Warning about this in the settings would be the easiest workaround.
92
Ugh.  ;D
No, it actually created both files, but ...

Code: Text [Select]
  1. if buildSuccess and not chkKeepPostscriptFile.Checked then;     // <<< the ";" ends the command...
  2.     DeleteFile(outputFileName); // get rid of the .ps file

But yay, we're getting there!
93
For some reason, it only builds one file each time now, no matter how I set "keep the postscript file after creating the pdf file".
94
Like this?
edit: replaced
95
Good idea, actually. I will add that option. :)
edit: In order to not clutter the GUI any further, I'll add it to the settings screen.
96
No problem. Having both files built could be useful.

Maybe you could add a "both" option to the output format selection. :)
97
Makes sense. (As I said, this is a debug build. The final version will get rid of the intermediate .ps file and/or won’t try to build a .pdf file, probably to be released tomorrow.)

Thank you and sorry for being slow today - you helped me a lot!
98
Okay, I added "C:\Program Files\gs\gs10.02.1\lib" to the PATH environment variable and had no error message when starting groffstudio.

I loaded a man file, set the output format to PDF and then clicked "build".

This produced a PostScript file and a PDF file. I was able to view the .ps file in gsview and the .pdf file in Firefox without problems.

Setting the output format to PostScript also built both files.
99
The message is wrong, indeed. Of course, it’s .bat, not .exe.

What I just tested was:
  • Install Ghostscript from scoop (which tries to add ps2pdf to the PATH, it seems),
  • then run ps2pdf (no extension…  ;D) from inside groffstudio.

Worked for me…

So the message should probably rather be: “ps2pdf could not be found, please install Ghostscript and make sure that the folder that contains the ps2pdf command is in your PATH” AFAICS?

(I’m actually at work, sorry for being somewhat distracted here.)
100
I get an error at startup saying "On Windows, for creating PDF files, you need GhostScript installed. Sadly, groffstudio could not find ps2pdf.exe in your %PATH%, so writing PDF files will not be supported."

As mentioned before, I do have GhostScript (10.02.1) installed, but it does not have a ps2pdf.exe file.

There is a ps2pdf.bat file in its lib subdirectory, but only "C:\Program Files\gs\gs10.02.1\bin" is in the PATH. The bin directory contains gswin64.exe, gswin64c.exe, gsdll64.dll and gsdll64.lib only.
Pages: prev1 ... 5 6 7 8 9 [10]