Skip navigation
Tobi90
Currently Being Moderated

Problems with different fonts

Feb 12, 2013 6:35 AM

Hi community

 

I want to create a PDF automatically with a Script. All works fine, the pdf is displayed correctly. The only problem is that the titles arent bold. I dont know the problem, the pdfvalidator doesnt disclaim something related to this error. Therefore Adoebe Reader throws an error after opening the page...

 

In my document first i have the pages object

 

3 0 obj

<< /Type /Pages /MediaBox [0 0 612 792] /Resources << /Font << /F1 10 0 R /F2 8 0 R >> /ProcSet [/PDF /Text] >>

/Kids [4 0 R 6 0 R] /Count 2 >>

endobj

 

 

Here i say that F1 stands for arial and F2 for arial,bold

Here i also link to the font object.

 

8 0 obj

<< /Type /Font /Subtype /Type1 /BaseFont /Arial,Bold /FirstChar 31 /LastChar 255 /Widths [ 750 278 333 474 556 556 889 722 238 333 333 389 584 278 333 278

278 556 556 556 556 556 556 556 556 556 556 333 333 584 584 584 611 975 722 722 722 722 667 611 778 722 278 556 722 611 833 722 778 667 778 722 667 611 722 667 944 667 667 611 333 278 333 584

556 333 556 611 556 611 556 333 611 611 278 278 556 278 889 611 611 611 611 389 556 333 611 556 778 556 556 500 389 280 389 584 750 556 750 278 556 500 1000 556 556 333 1000 667 333 1000 750 750

750 750 278 278 500 500 350 556 1000 333 1000 556 333 944 750 750 667 278 333 556 556 556 556 280 556 333 737 370 556 584 333 737 552 400 549 333 333 333 576 556 278 333 333 365 556 834 834 834

611 722 722 722 722 722 722 1000 722 667 667 667 667 278 278 278 278 722 722 778 778 778 778 778 584 778 722 722 722 722 667 667 611 556 556 556 556 556 556 889 556 556 556 556 556 278 278 278

278 611 611 611 611 611 611 611 549 611 611 611 611 611 556 611 556 ] /Encoding /WinAnsiEncoding /FontDescriptor 9 0 R>>

endobj

9 0 obj

<< /Type /FontDescriptor /FontName /Arial,Bold /Flags 16416 /FontBBox [ -250 -238 1200 905 ] /MissingWidth 762 /StemV 151 /StemH 151 /ItalicAngle 0 /CapHeight 905 /XHeight 633 /Ascent 905 /Descent -238 /Leading 191 /MaxWidth 1000 /AvgWidth 476 >>

endobj

10 0 obj

<< /Type /Font /Subtype /Type1 /BaseFont /Arial /Encoding /WinAnsiEncoding /FirstChar 31 /LastChar 255 /FontDescriptor 11 0 R /Widths [ 750 278 278 355 556 556 889 667 191 333 333 389 584 278 333 278 278 556 556 556 556 556 556 556 556 556 556 278 278 584 584 584

556 1015 667 667 722 722 667 611 778 722 278 500 667 556 833 722 778 667 778 722 667 611 722 667 944 667 667 611 278 278 278 469 556 333 556 556 500 556 556 278 556 556 222 222 500 222 833 556 556 556 556 333 500 278 556 500 722 500 500 500 334 260 334 584

750 556 750 222 556 333 1000 556 556 333 1000 667 333 1000 750 750 750 750 222 222 333 333 350 556 1000 333 1000 500 333 944 750 750 667 278 333 556 556 556 556 260 556 333 737 370 556 584 333 737 552 400 549 333 333 333 576 537 278 333 333 365 556 834 834 834

611 667 667 667 667 667 667 1000 722 667 667 667 667 278 278 278 278 722 722 778 778 778 778 778 584 778 722 722 722 722 667 667 611 556 556 556 556 556 556 889 500 556 556 556 556 278 278 278

278 556 556 556 556 556 556 556 549 611 556 556 556 556 500 556 500 ] >>

endobj

11 0 obj

<< /Type /FontDescriptor /FontName /Arial /Ascent 728 /CapHeight 500 /Descent -210 /Flags 32 /FontBBox [-665 -325 2000 1006] /ItalicAngle 0 /StemV 0 /AvgWidth 557 /Leading 150 /MaxWidth 1015 /XHeight 250 >>

endobj

 

 

This font objects and font-descriptor objects should be right, because in an other file it works.

 

In my page i write a text between a block (BT- ET)  and there i "call" the font with /F2.

 

So can you help to find my failure? I dont know where it is. I copied the objects from the working file in this and vice versa....but it doesnt work....

 

 

Here is my document:

http://www.file-upload.net/download-7197579/pdf_file.pdf.html

 

 

Thanks,

Tobi90

 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points