From tomasz.krzywania at gmail.com Tue Jun 3 19:32:59 2014 From: tomasz.krzywania at gmail.com (Tomasz) Date: Tue, 3 Jun 2014 19:32:59 +0000 (UTC) Subject: [Cl-pdf-devel] PDF attachment Message-ID: Hi, Is it possible to attach something (XML) to the PDF generated out of cl-pdf? Thank Tou From tomasz.krzywania at gmail.com Tue Jun 3 21:32:14 2014 From: tomasz.krzywania at gmail.com (Tomasz) Date: Tue, 3 Jun 2014 21:32:14 +0000 (UTC) Subject: [Cl-pdf-devel] reduce PDF size - font subset? Message-ID: Hi I have issue with national fonts (Polish). The only way to render them properly we found, was to embed Type1 fonts. The problem is that now every file is >200kb since it has full Type1 2 fonts embeded. When i use http://smallpdf.com/compress-pdf, it seems that the embeding of a subset of fonts should solve the problem. Eventually i have 2 questions 1) is there any way to have Polish letters without embeding fonts? 2) if not, is it possible to reduce the size of files? embed subset of the fonts? Thank you in advance Best Regards From attila.lendvai at gmail.com Tue Jun 3 23:58:50 2014 From: attila.lendvai at gmail.com (Attila Lendvai) Date: Wed, 4 Jun 2014 01:58:50 +0200 Subject: [Cl-pdf-devel] reduce PDF size - font subset? In-Reply-To: References: Message-ID: > Eventually i have 2 questions > 1) is there any way to have Polish letters without embeding fonts? i think it's only possible through embedding. or at least that was the case a few years back when i looked into it, it's a PDF limitation. > 2) if not, is it possible to reduce the size of files? embed subset of the > fonts? i believe that to be possible by grabbing a font that is preinstalled by the pdf reader, dropping all character except that you need, and then using a your-package:put-string that locally sets the embedded crippled font when encounters a polish character. but it's not trivial and there may be many potential traps and even show-stoppers... so, unless it's a special use-case, i'd just ignore the extra size and accept it as the sideffect of using pdf. the beginning of this file has some code on how to load a font: http://dwim.hu/darcsweb/darcsweb.cgi?r=HEAD%20hu.dwim.presentation;a=headblob;f=/integration/cl-typesetting.lisp -- ? attila lendvai ? PGP: 963F 5D5F 45C7 DFCD 0A39 -- ?Until and unless you discover that money is the root of all good, you ask for your own destruction. When money ceases to be the tool by which men deal with one another, then men become the tools of men. Blood, whips and guns--or dollars. Take your choice - there is no other - and your time is running out.? ? Ayn Rand (1905?1982), 'Atlas Shrugged' (1957) From ystok-systema at rambler.ru Thu Jun 5 06:38:11 2014 From: ystok-systema at rambler.ru (Dmitry Ivanov) Date: Thu, 5 Jun 2014 10:38:11 +0400 Subject: [Cl-pdf-devel] reduce PDF size - font subset? References: Message-ID: <003f01cf8093$5a11fd70$8100a8c0@digo> Tomasz wrote on Tue, 3 Jun 2014 21:32:14 +0000 (UTC) 01:32: | I have issue with national fonts (Polish). | The only way to render them properly we found, was to embed Type1 | fonts. The problem is that now every file is >200kb since it has full | Type1 2 fonts embeded. | When i use http://smallpdf.com/compress-pdf, it seems that the embeding of a | subset of fonts should solve the problem. | | Eventually i have 2 questions | 1) is there any way to have Polish letters without embeding fonts? | 2) if not, is it possible to reduce the size of files? embed subset of | the fonts? AFAIK, font subsets is not implemented in the current version of CL-PDF. If you wish your PDF-files were used only by people in the intranet and browsed with AcroReader, you could install the necessary fonts files just on their computers. For example, on Windows the directory is something like C:\Program Files\Adobe\Acrobat x.x\Resource\Font\ In this configuration, the couple of PFB- and PFM-files should be installed on the target computer for each font. When you generate PDF, only AFM-files are taken into consideration, PFB are not loaded. -- Sincerely, Dmitry Ivanov lisp.ystok.ru