-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 El 2007-03-31 a las 21:28 +0200, Camaleón escribió:
Ejem... lee el manual de Ghostscript y revisa las opciones que tienes para hacer la conversión. Yo ya lo leí cuando tuve que poner en marcha ps2pdf para que me permitiera actuar sobre el pdf resultante (calidad, tamaño, rotación automática, incrustación o no de fuentes...). te permite un montón de opciones:
Este es el mismo y para la versión que trae la distro: file:///usr/share/doc/packages/ghostscript-library/doc/Readme.htm#Fonts All about fonts freely available for Ghostscript, and how to add and use new fonts. Also describes how to use Ghostscript fonts as X Windows fonts. For both users and developers. Y en file:///usr/share/doc/packages/ghostscript-library/doc/Fonts.htm pone: When Ghostscript needs a font, it must have some way to know where to look for it: that's the purpose of the Fontmap file, which associates the names of fonts such as /Times-Roman with the names of font files, such as n021003l.pfb. Fontmap can also create aliases for font names, so that for instance, /NimbusNo9L-Regu means the same font as /Times-Roman. que es precisamente lo que busco, pero no da las instrucciones exactas para hacer ese cambio, ni donde está exactamente ese fichero, porque el que encuentro no se como tocarlo. Dice: To add fonts of your own, you must edit Fontmap to include at the end an entry for your new font; the format for entries is documented in Fontmap itself. Since later entries in Fontmap override earlier entries, a font you add at the end supersedes any corresponding fonts supplied with Ghostscript and defined earlier in the file. O sea, que la sintaxis está en el propio fichero. Podría ser "/etc/ghostscript/8.15/Fontmap", pero esto es lo que contiene: %! % See Fontmap.GS for the syntax of real Fontmap files. %% Replace 1 (Fontmap.GS) (Fontmap.X11-auto) .runlibfileifexists (Fontmap.GS) .runlibfile (Fontmap.kanji) .runlibfileifexists (Fontmap.rus) .runlibfileifexists (Fontmap.CID) .runlibfileifexists (Fontmap.greek) .runlibfileifexists Entonces se refiere a "/usr/share/ghostscript/8.15/lib/Fontmap.GS"; ¡pero lo que busco ya está puesto! % Aliases ... /Times-Roman /NimbusRomNo9L-Regu ; /Times-Italic /NimbusRomNo9L-ReguItal ; /Times-Bold /NimbusRomNo9L-Medi ; /Times-BoldItalic /NimbusRomNo9L-MediItal ; Sin embargo, no hace esa substitución.
Y ojo, que este enlace sólo habla por encima de cómo se tratan las fuentes. Por ahí hay otro donde se listan los parámetros para pasar a ps2pdf.
¡Tate! Aquí está:
Ese es el que estaba mirando yo esta tarde precisamente, pero en file:///usr/share/doc/packages/ghostscript-library/doc/Ps2pdf.htm
Pero yo no quiero que no incruste todas las fuentes, sólo las que yo quiera.
Eh, eso no existe :-D o todas o ninguna.
El Distiller lo hacía.
Con otro conversor ya ves que no funciona del todo...
Funciona, funciona... con los parámetros adecuados ;-) Pista: "EmbedAllFonts" (creo que ya te lo dije antes).
Pues a mí no me funciona: cer@nimrodel:~/Varia/OO/test times font> ps2pdf13 -dEmbedAllFonts Prueba.ps Prueba-noemb.pdf && l *pdf && pdffonts Prueba-noemb.pdf - -rw-r--r-- 1 cer users 11445 2007-04-01 00:24 Prueba-noemb.pdf - -rw-r--r-- 1 cer users 11302 2007-03-31 20:29 Prueba.pdf name type emb sub uni object ID - ------------------------------------ ------------ --- --- --- --------- BLPGTW+NimbusRomNo9L-Regu Type 1C yes yes no 9 0 La embebe, y yo lo que quiero es que _no_ la embeba. Si pruebo con "NeverEmbed", da error: cer@nimrodel:~/Varia/OO/test times font> ps2pdf13 -dNeverEmbed Prueba.ps Prueba-noemb.pdf && l *pdf && pdffonts Prueba-noemb.pdf CRIT: typecheck in .putdeviceprops Ya me dirás... porque esas instrucciones no dicen cual es la sintaxis, si es -dNeverEmbed o que rayos es :-/ Ah, se trata de "-dEmbedAllFonts=/false". Así si funciona: cer@nimrodel:~/Varia/OO/test times font> ps2pdf13 -dEmbedAllFonts=false Prueba.ps Prueba-noemb.pdf && l *pdf && pdffonts Prueba-noemb.pdf - -rw-r--r-- 1 cer users 3522 2007-04-01 00:29 Prueba-noemb.pdf - -rw-r--r-- 1 cer users 11302 2007-03-31 20:29 Prueba.pdf name type emb sub uni object ID - ------------------------------------ ------------ --- --- --- --------- NimbusRomNo9L-Regu-iso1252 Type 1 no no no 9 0 Vale, lo intento con mi CV. Obtengo: - -rw-r--r-- 1 cer users 43508 2007-04-01 00:42 Cv.pdf - -rw-r--r-- 1 cer users 1240388 2007-04-01 00:42 Cv.ps Pinta bien. Pero al cargarlo en el Acrobat, protesta porque no puede encontrar la fuente "NimbusRomNo9L-Medi-iso1252". ¡Jolines! cer@nimrodel:~/Varia/OO/test times font> pdffonts Cv.pdf name type emb sub uni object ID - ------------------------------------ ------------ --- --- --- --------- Times-Bold Type 1 no no no 9 0 NimbusRomNo9L-Medi-iso1252 Type 1 no no no 11 0 NimbusRomNo9L-MediItal-iso1252 Type 1 no no no 13 0 NimbusRomNo9L-Regu-iso1252 Type 1 no no no 15 0 Times-Roman Type 1 no no no 8 0 Todo lo que se usa en el documento no es ahora "Times", y las que no lo son no las ha embebido, por lo que hay problemas. Por eso dije que no se podía decir que no embebiera ninguna :-( Al darle aceptar en el error, una gran parte del pdf es ilegible. [...] A ver, vuelvo a cambiar en el fichero "Times" por "Times New Roman", y ahora si funciona: name type emb sub uni object ID ------------------------------------ ------------ --- --- --- --------- Times-Roman Type 1 no no no 9 0 Times-Italic Type 1 no no no 8 0 Times-Bold Type 1 no no no 10 0 Y el CV tiene 30784 bytes, lo que está muy bien, y también se visualiza correctamente. ¡Eureka! ¡Pero no me gusta el sistema! Yo no quiero que no embeba ninguna fuente, tan solo quiero que no embeba la Times, o aquellas que yo le diga. Si se me ocurre usar una fuente distinta, me fríe. - -- Saludos Carlos E.R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFGDuvOtTMYHG2NR9URAt//AKCLTyfJDF0GOz9Cp4nobc+G45BEZQCghBXF 1TQiaLE64PQShlND0YOQxU4= =i5Kj -----END PGP SIGNATURE-----