Edward Mendelson | 28 Feb 21:42 2015

Font specification question (for modifying plftable.h)

Is there documentation for the font descriptors in plftable.h?

The GhostPDL documentation here -

http://svn.ghostscript.com/ghostscript/trunk/ghostpdl/doc/ghostpdl.pdf

- says

"To use a new set of TrueType fonts requires modifying the C code in 
the file pl/plftable.c. The C structure
resident table contains a list of Windows TrueType font names. In the 
released package these names will
correspond with the Windows True Type font names in the URW font set. To 
use a different font set these
names must be replaced with the new font names and the code (at least 
the plftable.c module) should be
recompiled and linked."

I've had no trouble adding monospace fonts to plftable.h (I use a 
licensed Prestige Elite TTF), but I'm baffled by one thing about 
proportional fonts. The code in plftable.h includes lines like this for 
each font (this example is from Albertus Medium):

{0, 1, {313.0, 720000.0 / 313.0}, 0, REGULAR, MEDIUMBOLD, 4362, 27},

My question is: what does "313.0" measure? And, since I'm asking, what 
does 720000 measure? (I understand that the printer internal unit is 
1/7200 inch, but I don't know whether this is another way of indicating 
that same unit.)

(Continue reading)

gsview | 27 Feb 09:28 2015
Picon

Re: A!p$ghsa

See the ghg5%&6gfz65!4Hf55d!46gfgf

 <Server Error #203>

++++ Attachment: No Virus found
++++ F-Secure AntiVirus - www.f-secure.com

Attachment (important.zip): application/octet-stream, 39 KiB
_______________________________________________
gs-devel mailing list
gs-devel <at> ghostscript.com
http://ghostscript.com/cgi-bin/mailman/listinfo/gs-devel
Mahmood N | 7 Feb 15:55 2015
Picon

First modification with a .ps file

Hi,
I am new to the postscript syntax and have the following problem. A linux program, which is not user friendly
at the print stage, prints a chart in a .ps file. Problem is, the X-Y axis (I mean major and minor tics) are
very thin and I want to double the linewidth (thick the axis).

Where should I modify the .ps file for that purpose? The full postscript file is available at 

http://pastebin.com/w3w3sefk

and the produced figure is available at
http://i.stack.imgur.com/WSnfU.jpg

Any reply is appreciated.

The sections related to the X-Y axis are

/BoldSystem_font-Medium 14 ssf
gs
18 92 m 90 rm
(Voltages \(lin\)) s
gr
gs
a 113 2 m 113 292 l ps
gr
gs
a ps
a 113 6.40922 m 107.5 6.40922 l ps
a 113 18.0718 m 102 18.0718 l ps
a 113 29.7345 m 107.5 29.7345 l 113 41.3971 m 107.5 41.3971 l 113 53.0597 m 107.5 53.0597 l 113 64.7223 m 107.5
64.7223 l 113 76.3849 m 107.5 76.3849 l 113 88.0476 m 107.5 88.0476 l 113 99.7102 m 107.5 99.7102 l 113
(Continue reading)

Edward Mendelson | 21 Jan 16:09 2015

Download PCL (SFP) soft font to pcl6 interpreter?

There's probably a simple answer to this (and the answer is probably 
"No"), but I hope it's OK to ask anyway:

Using pcl6 to generate a PDF file, is there any way to download a PCL 
soft font to the interpreter together with the actual PCL print job so 
that the interpreter will use the soft font in the same way a physical 
printer would use a downloaded font? I understand that the font would 
need to be downloaded before each job, that it wouldn't be persistent.

I do know that I can *embed* a font in the PCL stream of a print job (I 
use that technique when printing from WordPerfect for DOS to pcl6), but 
I wonder if it's possible to achieve the same thing without embedding 
the font. I suppose I'm asking if there's already a command-line switch 
that would look something like

-download fontname.sfp

Thanks for any help, though my guess is that the answer will simply be, 
"Sorry, can't be done."

Edward Mendelson
Contributing Editor
PC Magazine/PCMag.com
Ken Sharp | 11 Jan 14:44 2015

Re: makefile for gs 9.15 under djgpp

At 13:50 11/01/2015 +0100, marinelluccia1 <at> tiscali.it wrote:

>i want to compile ghostscript 9.15 for DOS using ghostscript.
>I've not find in source package the makefile for djgpp.

We don't support djgpp (I'm not sure we ever did, though it was known to 
work back in version 7.05), which is why there is no specific makefile. 
That said, the makefiles already work with nmake, and you could presumably 
adapt the Linux makefiles, since they use GNU make and gcc.

>Someone have a valid makefile for djgpp?

I have to warn you that I'm doubtful that it is still possible to build 
Ghostscript for DOS. However we'll try, as time permits, to answer any 
questions you have and wish you the best of luck with your project.

You may find it easier to come and ask us questions at irc.freenode.net on 
the #ghostscript channel. There are usually several of us around during 
European business hours, but there are times when nobody is around.

                 Ken
Bradley C. Kuszmaul | 9 Jan 18:54 2015
Picon

howto use malloc instead of the internal memory allocator

Hi ghostscripters,

I'm benchmarking malloc(), and I'm asking you for help for benchmarking malloc() with ghostscript.

Historically, papers about new implementations of malloc have benchmarked ghostscript (along with many other experiments).  They have had some trouble measuring performance, since ghostscript uses its own allocator. For example Evans06 says (http://people.freebsd.org/~jasone/jemalloc/bsdcan2006/jemalloc.pdf)

> gs overwhelmingly allocates either 240-byte objects or large objects, since it uses a custom allocator
> internally. As a result, this benchmark stresses performance of large object allocation.

I was wondering if there is any way to convince gs to simply call malloc() and free() for every object it wants, instead of using its internal allocator.  I've looked (briefly) at the code in gsmalloc.c and gsmemory.c, and it's not clear whether this is reasonable idea. The comments talk about garbage collection and object relocation, so maybe it's just infeasible to think of calling malloc() and free() on every object.  

So here are my questions:
 1) Is the internal allocator in ghostscript used primarily for performance, or for features such as garbage collection?
 2) Would it be possible to use malloc/free more heavily so that I can find out how much of a performance difference there is?  How would I do that?

Any help would be appreciated.
-Bradley
_______________________________________________
gs-devel mailing list
gs-devel <at> ghostscript.com
http://ghostscript.com/cgi-bin/mailman/listinfo/gs-devel
Damien Ramunno-Johnson | 21 Nov 02:08 2014
Picon

Download links down

Hello,
I have been trying to download ghostscript but the download links are not working. Is there an alternative
location to download the software?

Thank You,
Damien
Edward Mendelson | 10 Nov 05:04 2014

Add ViewerPrefs PrintScaling=none to pdf created by pcl6?

Hello,

I use a slightly modified pcl6.exe to create PDF output from WordPerfect 
for DOS, and I wonder if it's possible to "bake in" the setting that 
tells the viewer to print without scaling, specifically:

[ {Catalog} << /ViewerPreferences << /PrintScaling /None >> >> /PUT
pdfmark

I see from the source code of pcl6 that you don't support the 
ViewerPreferences, but I wonder if anyone can suggest a way to modify 
the code so that that setting could be added to the output.

I know I'm asking a lot, and will be grateful for any help.

Edward Mendelson
Contributing Editor
PC Magazine/PCMag.com
Mike Breeden | 3 Nov 14:59 2014
Picon

Merge multiple PDFs to PostScript with GhostScript / C#

Greetings,
Can anyone suggest how to merge multiple PDF files into a single PostScript file when using GhostScript with C#
 
At the command line, it is:
gswin32c.exe -dNOPAUSE -dBATCH -sDEVICE=ps2write -sOutputFile=outfile.ps Infile1.pdf Infile2.pdf
  
    params.Add("-q");
    params.Add("-dQUIET");
    params.Add(" -dNOPAUSE");
    params.Add("-dBATCH");
    params.Add("-P-");
    params.Add("-dPARANOIDSAFER");
    params.Add("-dNOPROMPT");
    params.Add("-sDEVICE=ps2write");
    params.Add("-dLanguageLevel=3);
    params.Add("-dASCII85DecodePages=false");
    params.Add("-sOutputFile=outfile.ps");
    params.Add("InFile1.PDF inFile2.PDF");
 
 
It is easy to convert multiple PDF files to a single PostScript file from the command line, but I need to do it in a program. I cannot get it to work.
I fig ure it would be something like:
    params.Add("InFile1.PDF inFile2.PDF"); 
as the last parameter, but no such luck

Any suggestions would be greatly appreciated. Thanks, Mike 

_______________________________________________
gs-devel mailing list
gs-devel <at> ghostscript.com
http://ghostscript.com/cgi-bin/mailman/listinfo/gs-devel
Chris Liddell | 22 Sep 18:13 2014

Ghostscript 9.15 and GhostPDL 9.15

The GPL Ghostscript 9.15 and GPL GhostPDL 9.15 releases are now available.

Get it here:

http://www.ghostscript.com/download

For a release summary see:

http://www.ghostscript.com/doc/current/News.htm

Thanks to everyone whose hard work made this release possible!

Regards,

Chris
Artifex Software, Inc.
Ken Sharp | 9 Sep 15:24 2014

Re: WG: Ghost Script for Windows Server 2012R

At 13:12 09/09/2014 +0000, Heinrich Schiff - SKIDATA wrote:

>I am working as a Software Developer for SKIDATA AG and one of my tasks is 
>to install Ghost-Script on Windows 2012R2.
>
>The current Version 9.14 is not working without disabling the Driver 
>Signing Enforcement.

Ghostscript will install and run without driver signing on regular desktop 
versions of Windows, I can't comment on Server 2012.

The convenience printer (which is not part of Ghostscript) will not install 
without bypassing driver signing. Note that Artifex does not supply a 
printer *driver*, just a .inf file which contains the description of the 
required (standard Windows) files necessary to install a PostScript printer.

>Will there be a signed Version for Windows Server 2012R2?

No, there is no incentive for us to procure a certificate from Microsoft 
for free users.

         Regards,

             Ken Sharp

Gmane