Re: [Groff] devpdf U-fonts and Russian

2017-10-16 Thread Tadziu Hoffmann
> > Another important issue is security. PS, as a > > programming language, allows far too much things. To put this into perspective, many people have no qualms running arbitrary javascript code in their browsers, not only from from the URL displayed by the browser but also from uncounted other

Re: [Groff] devpdf U-fonts and Russian

2017-10-11 Thread m4pirkol
On Wed, 11 Oct 2017 18:41:38 -0400 "James K. Lowden" wrote: > On Sat, 07 Oct 2017 15:17:25 +0200 (CEST) > Werner LEMBERG wrote: > > > Another important issue is security. PS, as a programming language, > > allows far too much things. > > But PS, as a programming language, is under programme

Re: [Groff] devpdf U-fonts and Russian

2017-10-11 Thread James K. Lowden
On Sat, 07 Oct 2017 15:17:25 +0200 (CEST) Werner LEMBERG wrote: > Another important issue is security. PS, as a programming language, > allows far too much things. But PS, as a programming language, is under programmer control. To treat it as though it accepts input from untrusted anonymous so

Re: [Groff] devpdf U-fonts and Russian

2017-10-09 Thread Tadziu Hoffmann
> Other that Ghostscript's compression perhaps not being > as good, so the image grows in bytes, does this matter? > The resulting pixels are the same? If ghostscript uses lossy compression, then the pixels will be similar but not *exactly* the same. Possibly ghostscript might also apply color m

Re: [Groff] devpdf U-fonts and Russian

2017-10-07 Thread Ralph Corderoy
Hi Heinz, > 143.pdf was produced using -Tpdf > > -rw-rw-r-- 1 oe users 2299609 7. Okt 13:14 143.pdf > -rw-rw-r-- 1 oe users 2265584 7. Okt 17:56 opt.pdf Can you try `ps2pdf 143.pdf gs.pdf' and tell us its size. I know it's `ps...', but it reads PDF too. -- Cheers, Ralph. https://plus.google.c

Re: [Groff] devpdf U-fonts and Russian

2017-10-07 Thread Heinz-Jürgen Oertel
Am Samstag, 7. Oktober 2017, 15:17:25 CEST schrieb Werner LEMBERG: > > If you want small PDF files, I suggest pdfsizeopt as a postprocessor. > > https://github.com/pts/pdfsizeopt > > > Werner 143.pdf was produced using -Tpdf -rw-rw-r-- 1 oe users 2299609 7. Okt 13:14 143.pdf -rw-r

Re: [Groff] devpdf U-fonts and Russian

2017-10-07 Thread Werner LEMBERG
> I understand the motivation for PDF was speeding rendering, e.g. no > lexing of PostScript, and remove control flow so the linear > description of the page dominated render time, and not hard to > predict, or faulty, loops. Another important issue is security. PS, as a programming language, al

Re: [Groff] devpdf U-fonts and Russian

2017-10-07 Thread Ralph Corderoy
Hi Tadziu, > (Also, ghostscript has the habit of reprocessing images even in > pdfwrite mode (instead of passing on compressed image data untouched), > which is somewhat suboptimal.) Other that Ghostscript's compression perhaps not being as good, so the image grows in bytes, does this matter? Th

Re: [Groff] devpdf U-fonts and Russian

2017-10-06 Thread Tadziu Hoffmann
> This is interesting. I thought that PDF had a more efficient way > of storing data than PostScript and as a result allowed for > faster reading and writing, although I've never looked into the > details. I haven't yet switched over from using grops to gropdf, > but I was beginning to think it wa

Re: [Groff] devpdf U-fonts and Russian

2017-10-06 Thread Peter Schaffter
On Fri, Oct 06, 2017, Tadziu Hoffmann wrote: > > > This discussion makes me wonder what the 3000-line perl > > script, grofpdf, can do that a trivial shell script that > > calls groff and ps2pdf can't. > > Embedding of PDF figures, I guess. Also, in a very general > sense, things like generating

Re: [Groff] devpdf U-fonts and Russian

2017-10-06 Thread Steve Izma
On Fri, Oct 06, 2017 at 05:10:17PM +0200, Tadziu Hoffmann wrote: > Subject: Re: [Groff] devpdf U-fonts and Russian > > Of course, the best solution would be for everybody to stop > using PDF and start using Postscript instead. This is interesting. I thought that PDF had a more effi

Re: [Groff] devpdf U-fonts and Russian

2017-10-06 Thread Tadziu Hoffmann
> This discussion makes me wonder what the 3000-line perl > script, grofpdf, can do that a trivial shell script that > calls groff and ps2pdf can't. Embedding of PDF figures, I guess. Also, in a very general sense, things like generating an outline. This is potentially simpler because gropdf ha

Re: [Groff] devpdf U-fonts and Russian

2017-10-06 Thread Doug McIlroy
This discussion makes me wonder what the 3000-line perl script, grofpdf, can do that a trivial shell script that calls groff and ps2pdf can't. doug

Re: [Groff] devpdf U-fonts and Russian

2017-10-06 Thread Deri James
On Fri 06 Oct 2017 13:43:13 Tadziu Hoffmann wrote: > In Postscript you can use the same font with multiple different > encodings; I assume something similar is also possible in PDF. > The way this is done is by making a copy of the font dictionary, > keeping all entries except Encoding, which is re

Re: [Groff] devpdf U-fonts and Russian

2017-10-06 Thread Tadziu Hoffmann
> I will work on fixing this so that if gropdf runs out of > undefined characters which can be used it will start using > defined but unused characters. This is a little trickier, > since a character which points to an unused glyph may in fact > get used later in the document. In Postscript you c

Re: [Groff] devpdf U-fonts and Russian

2017-10-06 Thread Deri James
On Fri 06 Oct 2017 10:57:43 Tadziu Hoffmann wrote: > Well, I get *different* errors, that at first sight appear > somewhat bizarre but don't give the impression of something > critical > > bash$ groff -Kutf8 -pet -Tpdf RuTest.rof >RuTest.pdf > RuTest.rof: Too many glyphs used in font '39' >

Re: [Groff] devpdf U-fonts and Russian

2017-10-06 Thread Keith Marshall
On 05/10/17 20:40, Tadziu Hoffmann wrote: >> Another strange thing is that, in case of using mixed >> Russian/Latin symbols in pic and tbl objects, the Latin >> letters and numbers become mis-positioned. >> I wonder what I am possibly do wrong. The GROFF version is 1.22.2 >> on Ubuntu 14.04. The c

Re: [Groff] devpdf U-fonts and Russian

2017-10-06 Thread Tadziu Hoffmann
[Replying to the list because of possible general interest.] > I followed you advice and it indeed worked. Didn't know that the > U-fonts can be copied from devpdf to devps :) Thank you for the hint! > But could you at least reproduce the error from my example? Because if > it is a bug, it ought

Re: [Groff] devpdf U-fonts and Russian

2017-10-05 Thread Tadziu Hoffmann
> Another strange thing is that, in case of using mixed > Russian/Latin symbols in pic and tbl objects, the Latin > letters and numbers become mis-positioned. > I wonder what I am possibly do wrong. The GROFF version is 1.22.2 > on Ubuntu 14.04. The compilation command used is: > > groff -Kutf8