[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-promo
Subject:    Re: [kde-promo] booklet
From:       Kurt Pfeifle <k1pfeifle () gmx ! net>
Date:       2010-09-15 8:20:39
Message-ID: AANLkTi=eQgedCsGiCV_h=-65pGtGnufKz2pKnB6q3rWF () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


On Tue, Sep 14, 2010 at 10:37 AM, Felix Michel <felix_michel@gmx.ch> wrote:

> sorry,
>
> so i failed to upload it correctly.
>
> my fault. now it should be up.
>
> cheers
>
> felix
>
> here the link again:
>
> http://community.kde.org/File:Kde_booklet.pdf
>


Hi,

it looks very nice so far.  ;-)

However, it would be an eternal pity, if this nice work was spoiled for
users by some "technical" problems. I notice it is made with "Adobe InDesign
CS3 (5.0)". Due to some ugly personal experience with some CS3/CS4 created
PDFs in the past, I think that *could* lead to problems when you try to
print it on "cheap" home printers, or when you try to otherwise process it.
Also, some (older) PDF viewers may have rendering problems with some areas
(esp. if you use transparencies and other fancy graphical design elements).

I don't have currently access to some real "PDF preflight" tools. Therefor
I'm resorting to "poor man's preflighting". (Sorry if this gmail is sent
from Windows and is HTML-formatted -- I've no idea how it arrives in your
inboxes after having passed through the mailing list filters. If it is
garbled, and if you have a real interest in what I'm talking about, just
re-apply the CLI commands I used and look yourself at the results -- they'll
work 1:1 the same on *nix after replacing 'gswin32c' with 'gs'):

C:\downloads> *pdfinfo Kde_booklet.pdf*
Creator:        Adobe InDesign CS3 (5.0)
Producer:       Adobe PDF Library 8.0
CreationDate:   09/14/10 01:01:48
ModDate:        09/14/10 01:01:52
Tagged:         yes
Pages:          7
Encrypted:      no
Page size:      419.528 x 595.276 pts
File size:      580785 bytes
Optimized:      no
PDF version:    1.4

Here's one real world problem with it. I've used "pdffonts" (like "pdfinfo"
from XPDF) to check which fonts the PDF uses, and if they are embedded or
not:

C:\downloads> *pdffonts Kde_booklet.pdf*
name                                 type              emb sub uni object ID
------------------------------------ ----------------- --- --- --- ---------
NGRVKY+Swiss721BT-Light              TrueType          yes yes yes     21  0
QFAGAS+Anivers-Regular               Type 1C           yes yes yes     19  0
*Error: Illegal entry in bfchar block in ToUnicode CMap*
TQHQQM+Swiss721BT-LightItalic        TrueType          yes yes yes     33  0

The problem is located on page 4, specifically:

C:\downloads> *pdffonts -f 4 -l 4 Kde_booklet.pdf *
name                                 type              emb sub uni object ID
------------------------------------ ----------------- --- --- --- ---------
*Error: Illegal entry in bfchar block in ToUnicode CMap*
NGRVKY+Swiss721BT-Light              TrueType          yes yes yes     21  0
TQHQQM+Swiss721BT-LightItalic        TrueType          yes yes yes     33  0
QFAGAS+Anivers-Regular               Type 1C           yes yes yes     19  0

As you can see by looking at each page separately, page 4 is the only one
that uses font "TQHQQM+Swiss721BT-LightItalic", it may be a problem with the
font itself. All other pages use the other two mentioned fonts only.
Re-distilling the PDF with Ghostscript and its default parameter settings
(which may re-sample some embedded image types at 72dpi resolution) succeeds
to remove the problem for me, but it has some little "side-effect" (you need
to decide if these are welcome ones or are rather un-wanted):

C:\downloads> *gswin32c -o Kde_booklet_redistilled_by_Ghostscript.pdf
-sDEVICE=pdfwrite Kde_booklet.pdf*
GPL Ghostscript 8.71 (2010-02-10)
Copyright (C) 2010 Artifex Software, Inc.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Processing pages 1 through 7.
Page 1
Page 2
Page 3
Page 4
Page 5
Page 6
Page 7

C:\downloads> *pdffonts Kde_booklet_redistilled_by_Ghostscript.pdf*
name                                 type              emb sub uni object ID
------------------------------------ ----------------- --- --- --- ---------
MPJPKX+Swiss721BT-Light              TrueType          yes yes no      19  0
CNTMXN+Anivers-Regular               Type 1C           yes yes no      14  0
IOYBEW+Swiss721BT-LightItalic        TrueType          yes yes no      35  0

Nice, all the fonts are still embedded, using the same names, and none has
suffered conversion into a different type. Now the "side effects":

C:\downloads> *pdfinfo Kde_booklet_redistilled_by_Ghostscript.pdf*
Producer:       GPL Ghostscript 8.71
CreationDate:   09/15/10 09:14:03
ModDate:        09/15/10 09:14:03
Tagged:         no
Pages:          7
Encrypted:      no
Page size:      419.528 x 595.276 pts
File size:      191791 bytes
Optimized:      no
PDF version:    1.4

In detail:

   - InDesign's signature in the metadata is gone.  ;-)
   - File size has shrinked from ~580 kBytes to ~190 kBytes

I don't see any visible difference in Acro Reader 9.3.3 on WinXP at 96dpi
screen resolution and 200% Zoom other than a smaller degradation in the KDE
logo at the top of each page. But this could be improved or kept at same
quality by adding some appropriate tweaking parameters to the Ghostscript
commandline (without much more finetuning, first try by adding
 -dPDFSETTINGS=/prepress).

Cheers,
Kurt

[Attachment #5 (text/html)]

<br><br><div class="gmail_quote">On Tue, Sep 14, 2010 at 10:37 AM, Felix Michel <span \
dir="ltr">&lt;<a href="mailto:felix_michel@gmx.ch">felix_michel@gmx.ch</a>&gt;</span> \
wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px \
#ccc solid;padding-left:1ex;">

sorry,<br>
<br>
so i failed to upload it correctly.<br>
<br>
my fault. now it should be up.<br>
<br>
cheers<br>
<br>
felix<br>
<br>
here the link again:<br>
<div><div></div><div class="h5"><br>
<a href="http://community.kde.org/File:Kde_booklet.pdf" \
target="_blank">http://community.kde.org/File:Kde_booklet.pdf</a></div></div></blockquote><div><br></div><div><br></div><div>Hi, \
</div><div><br></div><div>it looks very nice so far.   ;-)</div>

<div><br></div><div>However, it would be an eternal pity, if this nice work was \
spoiled for users by some &quot;technical&quot; problems.  I notice it is made with \
&quot;Adobe InDesign CS3 (5.0)&quot;. Due to some ugly personal experience with some \
CS3/CS4 created PDFs in the past, I think that *could* lead to problems when you try \
to print it on &quot;cheap&quot; home printers, or when you try to otherwise process \
it. Also, some (older) PDF viewers may have rendering problems with some areas (esp. \
if you use transparencies and other fancy graphical design elements).  </div>

<div><br></div><div>I don&#39;t have currently access to some real &quot;PDF \
preflight&quot; tools. Therefor I&#39;m resorting to &quot;poor man&#39;s \
preflighting&quot;. (Sorry if this gmail is sent from Windows and is HTML-formatted \
-- I&#39;ve no idea how it arrives in your inboxes after having passed through the \
mailing list filters. If it is garbled, and if you have a real interest in what \
I&#39;m talking about, just re-apply the CLI commands I used and look yourself at the \
results -- they&#39;ll work 1:1 the same on *nix after replacing &#39;gswin32c&#39; \
with &#39;gs&#39;):</div>

<div><br></div><div><div><font class="Apple-style-span" face="&#39;courier new&#39;, \
monospace">C:\downloads&gt; <b>pdfinfo Kde_booklet.pdf</b></font></div><div><font \
class="Apple-style-span" face="&#39;courier new&#39;, monospace">Creator:            \
Adobe InDesign CS3 (5.0)</font></div>

<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">Producer: \
Adobe PDF Library 8.0</font></div><div><font class="Apple-style-span" \
face="&#39;courier new&#39;, monospace">CreationDate:    09/14/10 \
01:01:48</font></div>

<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">ModDate:  \
09/14/10 01:01:52</font></div><div><font class="Apple-style-span" face="&#39;courier \
new&#39;, monospace">Tagged:             yes</font></div>

<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">Pages:    \
7</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, \
monospace">Encrypted:         no</font></div><div><font class="Apple-style-span" \
face="&#39;courier new&#39;, monospace">Page size:         419.528 x 595.276 \
pts</font></div>

<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">File \
size:         580785 bytes</font></div><div><font class="Apple-style-span" \
face="&#39;courier new&#39;, monospace">Optimized:         no</font></div>

<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">PDF \
version:      1.4</font></div></div><div><br></div><div>Here&#39;s one real world \
problem with it. I&#39;ve used &quot;pdffonts&quot; (like &quot;pdfinfo&quot; from \
XPDF) to check which fonts the PDF uses, and if they are embedded or not:</div>

<div><br></div><div><div><font class="Apple-style-span" face="&#39;courier new&#39;, \
monospace">C:\downloads&gt; <b>pdffonts Kde_booklet.pdf</b></font></div><div><font \
class="Apple-style-span" face="&#39;courier new&#39;, monospace">name                 \
type                     emb sub uni object ID</font></div>

<div><font class="Apple-style-span" face="&#39;courier new&#39;, \
monospace">------------------------------------ ----------------- --- --- --- \
---------</font></div><div><font class="Apple-style-span" face="&#39;courier \
new&#39;, monospace">NGRVKY+Swiss721BT-Light                     TrueType             \
yes yes yes       21   0</font></div>

<div><font class="Apple-style-span" face="&#39;courier new&#39;, \
monospace">QFAGAS+Anivers-Regular                      Type 1C                yes yes \
yes       19   0</font></div><div><font class="Apple-style-span" face="&#39;courier \
new&#39;, monospace"><b><font class="Apple-style-span" color="#FF0000">Error: Illegal \
entry in bfchar block in ToUnicode CMap</font></b></font></div>

<div><font class="Apple-style-span" face="&#39;courier new&#39;, \
monospace">TQHQQM+Swiss721BT-LightItalic            TrueType               yes yes \
yes       33   0</font></div></div><div><br></div><div>The problem is located on page \
4, specifically:</div>

<div><br></div><div><div><font class="Apple-style-span" face="&#39;courier new&#39;, \
monospace">C:\downloads&gt; <b>pdffonts -f 4 -l 4 Kde_booklet.pdf  \
</b></font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, \
monospace">name                                                 type                  \
emb sub uni object ID</font></div>

<div><font class="Apple-style-span" face="&#39;courier new&#39;, \
monospace">------------------------------------ ----------------- --- --- --- \
---------</font></div><div><font class="Apple-style-span" face="&#39;courier \
new&#39;, monospace"><b>Error: Illegal entry in bfchar block in ToUnicode \
CMap</b></font></div>

<div><font class="Apple-style-span" face="&#39;courier new&#39;, \
monospace">NGRVKY+Swiss721BT-Light                     TrueType               yes yes \
yes       21   0</font></div><div><font class="Apple-style-span" face="&#39;courier \
new&#39;, monospace">TQHQQM+Swiss721BT-LightItalic            TrueType               \
yes yes yes       33   0</font></div>

<div><font class="Apple-style-span" face="&#39;courier new&#39;, \
monospace">QFAGAS+Anivers-Regular                      Type 1C                yes yes \
yes       19   0</font></div></div><div><br></div><div>As you can see by looking at \
each page separately, page 4 is the only one that uses font &quot;<font \
class="Apple-style-span" face="arial, helvetica, \
sans-serif">TQHQQM+Swiss721BT-LightItalic&quot;, it may be a problem with the font \
itself. All other pages use the other two mentioned fonts only. Re-distilling the PDF \
with Ghostscript and its default parameter settings (which may re-sample some \
embedded image types at 72dpi resolution) succeeds to remove the problem for me, but \
it has some little &quot;side-effect&quot; (you need to decide if these are welcome \
ones or are rather un-wanted):</font></div>

<div><font class="Apple-style-span" face="arial, helvetica, \
sans-serif"><br></font></div><div><div><font class="Apple-style-span" \
face="&#39;courier new&#39;, monospace">C:\downloads&gt; <b>gswin32c -o \
Kde_booklet_redistilled_by_Ghostscript.pdf -sDEVICE=pdfwrite \
Kde_booklet.pdf</b></font></div>

<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">GPL \
Ghostscript 8.71 (2010-02-10)</font></div><div><font class="Apple-style-span" \
face="&#39;courier new&#39;, monospace">Copyright (C) 2010 Artifex Software, Inc.   \
All rights reserved.</font></div>

<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">This \
software comes with NO WARRANTY: see the file PUBLIC for \
details.</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, \
monospace">Processing pages 1 through 7.</font></div>

<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">Page \
1</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, \
monospace">Page 2</font></div><div><font class="Apple-style-span" face="&#39;courier \
new&#39;, monospace">Page 3</font></div>

<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">Page \
4</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, \
monospace">Page 5</font></div><div><font class="Apple-style-span" face="&#39;courier \
new&#39;, monospace">Page 6</font></div>

<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">Page \
7</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, \
monospace"><br></font></div><div><font class="Apple-style-span" face="&#39;courier \
new&#39;, monospace"><span class="Apple-style-span" style="font-family: arial; \
"><div>

<font class="Apple-style-span" face="&#39;courier new&#39;, \
monospace">C:\downloads&gt; <b>pdffonts \
Kde_booklet_redistilled_by_Ghostscript.pdf</b></font></div><div><font \
class="Apple-style-span" face="&#39;courier new&#39;, monospace">name                 \
type                     emb sub uni object ID</font></div>

<div><font class="Apple-style-span" face="&#39;courier new&#39;, \
monospace">------------------------------------ ----------------- --- --- --- \
---------</font></div><div><font class="Apple-style-span" face="&#39;courier \
new&#39;, monospace">MPJPKX+Swiss721BT-Light                     TrueType             \
yes yes no         19   0</font></div>

<div><font class="Apple-style-span" face="&#39;courier new&#39;, \
monospace">CNTMXN+Anivers-Regular                      Type 1C                yes yes \
no         14   0</font></div><div><font class="Apple-style-span" face="&#39;courier \
new&#39;, monospace">IOYBEW+Swiss721BT-LightItalic            TrueType               \
yes yes no         35   0</font></div>

<div><font class="Apple-style-span" face="&#39;courier new&#39;, \
monospace"><br></font></div><div><font class="Apple-style-span" face="&#39;courier \
new&#39;, monospace"><span class="Apple-style-span" style="font-family: arial, \
helvetica, sans-serif; ">Nice, all the fonts are still embedded, using the same \
names, and none has suffered conversion into a different type. Now the &quot;side \
effects&quot;:</span></font></div>

<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><span \
class="Apple-style-span" style="font-family: arial, helvetica, sans-serif; \
"><br></span></font></div></span></font></div><div><font class="Apple-style-span" \
face="&#39;courier new&#39;, monospace">C:\downloads&gt; <b>pdfinfo \
Kde_booklet_redistilled_by_Ghostscript.pdf</b></font></div>

<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">Producer: \
GPL Ghostscript 8.71</font></div><div><font class="Apple-style-span" \
face="&#39;courier new&#39;, monospace">CreationDate:    09/15/10 \
09:14:03</font></div>

<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">ModDate:  \
09/15/10 09:14:03</font></div><div><font class="Apple-style-span" face="&#39;courier \
new&#39;, monospace">Tagged:             no</font></div>

<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">Pages:    \
7</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, \
monospace">Encrypted:         no</font></div><div><font class="Apple-style-span" \
face="&#39;courier new&#39;, monospace">Page size:         419.528 x 595.276 \
pts</font></div>

<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">File \
size:         191791 bytes</font></div><div><font class="Apple-style-span" \
face="&#39;courier new&#39;, monospace">Optimized:         no</font></div>

<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">PDF \
version:      1.4</font></div><div><font class="Apple-style-span" face="arial, \
helvetica, sans-serif"><br></font></div><div><font class="Apple-style-span" \
face="arial, helvetica, sans-serif">In detail:</font></div>

<div><ul><li><span class="Apple-style-span" style="font-family: arial, helvetica, \
sans-serif; ">InDesign&#39;s signature in the metadata is gone.   \
;-)</span></li><li><span class="Apple-style-span" style="font-family: arial, \
helvetica, sans-serif; ">File size has shrinked from ~580 kBytes to ~190 \
kBytes</span></li>

</ul><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif; \
">I don&#39;t see any visible difference in Acro Reader 9.3.3 on WinXP at 96dpi \
screen resolution and 200% Zoom other than a smaller degradation in the KDE logo at \
the top of each page. But this could be improved or kept at same quality by adding \
some appropriate tweaking parameters to the Ghostscript commandline (without much \
more finetuning, first try by adding</span><span class="Apple-style-span" \
style="color: rgb(102, 61, 61); "><font class="Apple-style-span" face="&#39;courier \
new&#39;, monospace">  -dPDFSETTINGS=/prepress</font></span><span \
class="Apple-style-span" style="font-family: arial, helvetica, sans-serif; \
">).</span></div>

<div><font class="Apple-style-span" face="arial, helvetica, \
sans-serif"><br></font></div><div><font class="Apple-style-span" face="&#39;courier \
new&#39;, monospace">Cheers,</font></div><div><font class="Apple-style-span" \
face="&#39;courier new&#39;, monospace">Kurt</font></div>

<div style="font-family: arial, helvetica, sans-serif; "><br></div></div></div>



_______________________________________________
This message is from the kde-promo mailing list.

Visit https://mail.kde.org/mailman/listinfo/kde-promo to unsubscribe, set digest on \
or temporarily stop your subscription.



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic