Paul
2013-01-31 23:23:24 UTC
A Windows app (openFTA, www.openfta.com) generated a PDF schematic
diagram. There is no way in the app to increase the font size of
text. I want to edit the PDF in order to increase the font size of
all the text in the PDF file. Otherwise, I have to manually use Adobe
Pro and select each swath of text in order to increase the font size.
The printer driver is PDF24, and I selected the following options.
I'm not that familiar with these parameters, but my guiding thoughts
were that the earlier the version, the less complex the file and the
more easily I can access the individual attributes with a text editor.
* Optimize for portability rather than speed
* Minimum PostScript Language Level 1
* Minimum PDF Compatbility 1.2
* EmbedAllFonts = True
* PDFSubsetFonts = True
I used a text editor (vim) to access the PDF file (extract shown
below) and did a case-insensitive search for all occurances of "font"
and "arial". The PDF file is quite cryptic, so I'm not sure if I
actually can change the font size from there (it's similar & no less
cryptic after passing it through "pdf2ps -dLanguageLevel1"):
Extract of PDF file
-------------------
1223 4 0 obj
1224 <</Type/Page/MediaBox [0 0 612 792]
1225 /Rotate 0/Parent 3 0 R
1226 /Resources<</ProcSet[/PDF /Text]
---- /Font 9 0 R
1228 >>
1229 /Contents 5 0 R
1230 >>
1231 endobj
<...snip...>
1253 7 0 obj
---- <</BaseFont/GIYRNY+Arial/FontDescriptor 8 0 R/ToUnicode 11 0
R/Type/Font
1255 /FirstChar 1/LastChar 37/Widths[ 611 333 556 278 278 556 556
500 667 500 500 278 278 278 722
1256 722 556 222 222 556 611 667 556 833 500 556 944 722 722 667
556
1257 556 556 556 556 556 556]
1258 /Subtype/TrueType>>
1259 endobj
1260 8 0 obj
---- <</Type/FontDescriptor/FontName/GIYRNY+Arial/FontBBox[0 -210
932 728]/Flags 4
1262 /Ascent 728
1263 /CapHeight 728
1264 /Descent -210
1265 /ItalicAngle 0
1266 /StemV 139
1267 /MissingWidth 750
1268 /XHeight 530
---- /FontFile2 10 0 R>>
1270 endobj
---- %BeginResource: file (PDF FontFile obj_10)
1272 10 0 obj
1273 <</Filter/LZWDecode
1274 /Length1 32200/Length 21825>>stream
<...encoded content starts here...>
<... no further occurance of "font" or "arial"...>
I also used pstoedit to convert the PDF to EMF so that I can use
Powerpoint to change all the font sizes at once. No luck. Errors
from this conversion (below) cause the text to look nonsensical when
the EMF is inserted into powerpoint. The same errors occure when I
try to convert the PS to EMF. Trying to ungroup the resulting EMF to
apply Arial 12-point requires converting the object to a Microsoft
Office Drawing, which converts the nonsensical characters into
meaningless decimal digits in Arial font (not the original text).
Errors converting PDF or PS to EMF
----------------------------------
pstoedit: version 3.60 / DLL interface 108 (built: Apr 2 2012 -
release build - g++ 4.5.3 - 32-bit) : Copyright (C) 1993 - 2011
Wolfgang Glunz
unable to map [c2] glyph name 10 encoded as 10 - using the
PostScript code value instead.
unable to map [c2] glyph name 11 encoded as 11 - using the
PostScript code value instead.
<...snip...>
unable to map [c2] glyph name 30 encoded as 30 - using the
PostScript code value instead.
unable to map [c2] glyph name 35 encoded as 35 - using the
PostScript code value instead.
Warning: Inter letter spacing is approximated by pstoedit because
of problems in libemf. Use -pta option if results are not OK.
So...is there a way to change the font sizes in one fell swoop rather
than individually using Acrobat Pro?
diagram. There is no way in the app to increase the font size of
text. I want to edit the PDF in order to increase the font size of
all the text in the PDF file. Otherwise, I have to manually use Adobe
Pro and select each swath of text in order to increase the font size.
The printer driver is PDF24, and I selected the following options.
I'm not that familiar with these parameters, but my guiding thoughts
were that the earlier the version, the less complex the file and the
more easily I can access the individual attributes with a text editor.
* Optimize for portability rather than speed
* Minimum PostScript Language Level 1
* Minimum PDF Compatbility 1.2
* EmbedAllFonts = True
* PDFSubsetFonts = True
I used a text editor (vim) to access the PDF file (extract shown
below) and did a case-insensitive search for all occurances of "font"
and "arial". The PDF file is quite cryptic, so I'm not sure if I
actually can change the font size from there (it's similar & no less
cryptic after passing it through "pdf2ps -dLanguageLevel1"):
Extract of PDF file
-------------------
1223 4 0 obj
1224 <</Type/Page/MediaBox [0 0 612 792]
1225 /Rotate 0/Parent 3 0 R
1226 /Resources<</ProcSet[/PDF /Text]
---- /Font 9 0 R
1228 >>
1229 /Contents 5 0 R
1230 >>
1231 endobj
<...snip...>
1253 7 0 obj
---- <</BaseFont/GIYRNY+Arial/FontDescriptor 8 0 R/ToUnicode 11 0
R/Type/Font
1255 /FirstChar 1/LastChar 37/Widths[ 611 333 556 278 278 556 556
500 667 500 500 278 278 278 722
1256 722 556 222 222 556 611 667 556 833 500 556 944 722 722 667
556
1257 556 556 556 556 556 556]
1258 /Subtype/TrueType>>
1259 endobj
1260 8 0 obj
---- <</Type/FontDescriptor/FontName/GIYRNY+Arial/FontBBox[0 -210
932 728]/Flags 4
1262 /Ascent 728
1263 /CapHeight 728
1264 /Descent -210
1265 /ItalicAngle 0
1266 /StemV 139
1267 /MissingWidth 750
1268 /XHeight 530
---- /FontFile2 10 0 R>>
1270 endobj
---- %BeginResource: file (PDF FontFile obj_10)
1272 10 0 obj
1273 <</Filter/LZWDecode
1274 /Length1 32200/Length 21825>>stream
<...encoded content starts here...>
<... no further occurance of "font" or "arial"...>
I also used pstoedit to convert the PDF to EMF so that I can use
Powerpoint to change all the font sizes at once. No luck. Errors
from this conversion (below) cause the text to look nonsensical when
the EMF is inserted into powerpoint. The same errors occure when I
try to convert the PS to EMF. Trying to ungroup the resulting EMF to
apply Arial 12-point requires converting the object to a Microsoft
Office Drawing, which converts the nonsensical characters into
meaningless decimal digits in Arial font (not the original text).
Errors converting PDF or PS to EMF
----------------------------------
pstoedit: version 3.60 / DLL interface 108 (built: Apr 2 2012 -
release build - g++ 4.5.3 - 32-bit) : Copyright (C) 1993 - 2011
Wolfgang Glunz
unable to map [c2] glyph name 10 encoded as 10 - using the
PostScript code value instead.
unable to map [c2] glyph name 11 encoded as 11 - using the
PostScript code value instead.
<...snip...>
unable to map [c2] glyph name 30 encoded as 30 - using the
PostScript code value instead.
unable to map [c2] glyph name 35 encoded as 35 - using the
PostScript code value instead.
Warning: Inter letter spacing is approximated by pstoedit because
of problems in libemf. Use -pta option if results are not OK.
So...is there a way to change the font sizes in one fell swoop rather
than individually using Acrobat Pro?