Home
 
The page you are viewing is part of our 160,000 page PDF discussion forum archive spanning 1999-2011.
Go to the new Planet PDF forum to join the PDF community.
 

Search
 Advanced   
Sign up for a WebBoard account Archive Forum Home


PLATINUM
SPONSOR

GOLD
SPONSORS



Topic  
Go to previous topicPrev TopicGo to next topicNext Topic
Author Message
gaxy
gaxy

Total Messages 15

Subject:My pdf with embedded font

Hi,

I'm trying to embed a font in a pdf. I want to embed it fully
(don't tell me that subset are better, I know it but I can't).

I attach my produced pdf: what is wrong with it?

Thank you for any help!



Document2.pdf
my produced file

Posted: 03 Dec 2009 01:47 AM
Left Button SpacerView user's profile profileRight Button Spacer
 
 
aandi
aandi

Total Messages 17064

Subject:My pdf with embedded font

FontDescriptor should be a dictionary.


Posted: 03 Dec 2009 03:37 AM
Left Button SpacerView user's profile profileRight Button Spacer
 
 
gaxy
gaxy

Total Messages 15

Subject:My pdf with embedded font

Yes the analyzer told me that but... what does it mean? I copied
the font descriptor style from another pdf and there it works... I
can attach also the other one!
I think it's something wrong with the font description itself, like
capheigth or some other parameter that is wrong...

Thank you for your help!



DocumentPDF-Example-Fonts.pdf
example of font descriptor(s)

Posted: 03 Dec 2009 07:23 PM
Left Button SpacerView user's profile profileRight Button Spacer
 
 
aandi
aandi

Total Messages 17064

Subject:My pdf with embedded font

FontDescriptor should be a dictionary. The dictionary takes the form described in section 5.7. Very much like the object "4 0 obj" in fact. But that is not what you store in your font object.


Posted: 03 Dec 2009 07:57 PM
Left Button SpacerView user's profile profileRight Button Spacer
 
 
gaxy
gaxy

Total Messages 15

Subject:My pdf with embedded font

I checked again my font descriptor object.

I added the required "/ascent" entry. All the others compulsory
entries were ok. But it doesn't work... this is not clear to me!



Document3(1).pdf
another try...

Posted: 03 Dec 2009 08:21 PM
Left Button SpacerView user's profile profileRight Button Spacer
 
 
gaxy
gaxy

Total Messages 15

Subject:My pdf with embedded font

I found out my error, reference were wrong.

Now I have glyphs wrong, how can I correct them? I think it's a
problem related to ascent/descent/capheigth... values, can you
help me to gather the correct ones?

Regards.



Document4(1).pdf

Posted: 03 Dec 2009 09:26 PM
Left Button SpacerView user's profile profileRight Button Spacer
 
 
aandi
aandi

Total Messages 17064

Subject:My pdf with embedded font

I get an error, but it doesn't mention glyphs. What error message do you get, exactly, and from what software and release.


Posted: 03 Dec 2009 09:38 PM
Left Button SpacerView user's profile profileRight Button Spacer
 
 
gaxy
gaxy

Total Messages 15

Subject:My pdf with embedded font

I get the following message error (translated from Italian):

"Information about glyph width are not consistent".

I'm using Pdfapilot version 2.0.


Posted: 03 Dec 2009 10:24 PM
Left Button SpacerView user's profile profileRight Button Spacer
 
 
aandi
aandi

Total Messages 17064

Subject:My pdf with embedded font

Ok, I get something completely different in Acrobat. Did you try Acrobat/Reader? Anyway, there is something wrong with your color space. A color space must be an array or name, but you have a stream.


Posted: 04 Dec 2009 01:53 AM
Left Button SpacerView user's profile profileRight Button Spacer
 
 
gaxy
gaxy

Total Messages 15

Subject:My pdf with embedded font

Colorspace is ok, I have a stream since it is embedded (I'd like to
obtain a pdf-a compliant file). If you remove font, it is checked
correctly, so I think the mistake is the font itself...


Posted: 04 Dec 2009 02:34 AM
Left Button SpacerView user's profile profileRight Button Spacer
 
 
aandi
aandi

Total Messages 17064

Subject:My pdf with embedded font

If you remove the font, does it show without error in Acrobat or Adobe Reader?


Posted: 04 Dec 2009 02:47 AM
Left Button SpacerView user's profile profileRight Button Spacer
 
 
gaxy
gaxy

Total Messages 15

Subject:My pdf with embedded font

I use Adobe Reader 9.2 and I can see it correctly. I attach it to
you to check (without font).



Document5.pdf
file without font

Posted: 04 Dec 2009 03:09 AM
Left Button SpacerView user's profile profileRight Button Spacer
 
 
aandi
aandi

Total Messages 17064

Subject:My pdf with embedded font

This PDF has removed both the font and the incorrect color space from the page, so there will be no error...


Posted: 04 Dec 2009 03:19 AM
Left Button SpacerView user's profile profileRight Button Spacer
 
 
gaxy
gaxy

Total Messages 15

Subject:My pdf with embedded font

I removed font, but colorspace is object 2 0... and yes there is
no error!


Posted: 04 Dec 2009 03:24 AM
Left Button SpacerView user's profile profileRight Button Spacer
 
 
aandi
aandi

Total Messages 17064

Subject:My pdf with embedded font

It doesn't matter whether the object is still in the PDF. Nothing checks this.

What matters is the reference to the colorspace through a cs or CS operator in the page. You have removed this, so there is no error.


Posted: 04 Dec 2009 03:35 AM
Left Button SpacerView user's profile profileRight Button Spacer
 
 
gaxy
gaxy

Total Messages 15

Subject:My pdf with embedded font

This is not true. removing it, I still have the "glyph not consistent
error". If you have Adobe Pro, you can try check the file with
preflight. I guess you will have the same error that I have. I
attach you the file...



Document6.pdf
no cs ref, but...

Posted: 04 Dec 2009 03:45 AM
Left Button SpacerView user's profile profileRight Button Spacer
 
 
aandi
aandi

Total Messages 17064

Subject:My pdf with embedded font

I never had a "glyph not consistent" error in Acrobat.
I tried several versions.

Acrobat 9 shows 6.pdf with no error. The word "hello" appears.

What preflight profile do you suggest?


Posted: 04 Dec 2009 03:51 AM
Left Button SpacerView user's profile profileRight Button Spacer
 
 
gaxy
gaxy

Total Messages 15

Subject:My pdf with embedded font

I always use the profile to check the pdf/a-1b compliance. I
don't have it now installed, but I guess it will give the same
result of my analyzer.
However, eventually tomorrow I will install also it so that we use
the same program to check and we have the same discussion
start point...


Posted: 04 Dec 2009 03:56 AM
Left Button SpacerView user's profile profileRight Button Spacer
 
 
aandi
aandi

Total Messages 17064

Subject:My pdf with embedded font

Ok, I think you should run the PDF/A-1b compliance check in Acrobat 9, the results are interesting and probably support what you have seen. Unfortunately, they are not very specific about part of the problem. Embedding fonts correctly is a very difficult task and does require a good understanding of the font formats as well as the PDF format. Just embedding the whole of font files and hoping for the best is what we all wish would work, but it is not a good strategy.

Also bear in mind that passing preflight does NOT mean that a PDF has no errors: it is not an error checker. It only looks for particular things in valid PDF files.

I do not understand how you can say your color space is valid, but that's something for another day. I won't argue that point with you any more.


Posted: 04 Dec 2009 05:23 AM
Left Button SpacerView user's profile profileRight Button Spacer
 
 
gaxy
gaxy

Total Messages 15

Subject:My pdf with embedded font

Hi.

I'm interested also in the colorspace matter, my old analyzer told
me it is ok, however, today I installed also Acrobat, and it gives
the error you told me.

So, I'd like to know (if you can) if the pdf I attach to this
message is correct for the colorspace part...

I know that font managing is far from simple but I need only to
embed a single type font for my project... however do you know
a font analyzer tool to suggest me?

Thank you!



Document26-10-09-13-17-56_a1b_bn.pdf
is this colorspace ok?

Posted: 04 Dec 2009 10:09 PM
Left Button SpacerView user's profile profileRight Button Spacer
 
 
aandi
aandi

Total Messages 17064

Subject:My pdf with embedded font

The color space in the resources dictionary is still a stream. It needs to be an array (which references a stream). Take a look at the subsection of the PDF Reference that describes the ICCBased color space.

If you don't want a general font embedder I suggest a different approach. What I would do is use a trusted tool to create a PDF with non-subset font. Analyse the objects it adds precisely, and include the same objects and same stream byte-for-byte. (Consider licensing issues for the font you select! Using an open free font may be the simplest approach. The fonts includes with Windows are not redistributable, if your application needs to be.).


Posted: 04 Dec 2009 11:08 PM
Left Button SpacerView user's profile profileRight Button Spacer
 
 
gaxy
gaxy

Total Messages 15

Subject:My pdf with embedded font

This was my first idea! My problem is that as far as now I couldn't found any tool doing that... I tried novaPDF (it doesn't embed fully a font also if I check the option), Acrobat itself (same problem), pdfcreator (can't find that option...) Any suggestion? Regards. ps. the colorspace I use in 26-10-09-13-17-56_a1b_bn.pdf is copied from the one used in Acrobat if you ask to embed colorspace in a pre-existent pdf... I'm confused


Posted: 04 Dec 2009 11:38 PM
Originally Posted: 04 Dec 2009 11:35 PM
Left Button SpacerView user's profile profileRight Button Spacer
 
 
gaxy
gaxy

Total Messages 15

Subject:My pdf with embedded font

About colorspace, I found out: I was (wrongly) calling the
ICCColorstream requested in the Destination Output Profile
"colorspace". Obviously I cannot refereciate the stream as a
colorspace... do you think this is the right explanation?


Posted: 05 Dec 2009 12:00 AM
Left Button SpacerView user's profile profileRight Button Spacer
 
 
aandi
aandi

Total Messages 17064

Subject:My pdf with embedded font

Yes, that is correct: an ICC profile is not a color space. It can easily be used in a color space, but the color space itself must be an array.

Most tools now subset fonts. I don't know what (except ancient versions of Acrobat) will embed entire fonts, but maybe someone can suggest something.


Posted: 05 Dec 2009 01:14 AM
Left Button SpacerView user's profile profileRight Button Spacer
 
 
gaxy
gaxy

Total Messages 15

Subject:My pdf with embedded font

Hi.

I hope someone can suggest me a good tool. In the meanwhile, I
worked on my old file trying to use a free font I downloaded from
fonts4free.
I came to a new result... now glyphs are correct but the Adobe
preflight (pdf/a-1b profile) tells me the font is not valid... any
suggestion?

Best regards.



Documentnew(1).pdf

Posted: 10 Dec 2009 12:25 AM
Left Button SpacerView user's profile profileRight Button Spacer
 
 
   
Go to previous topicPrev TopicGo to next topicNext Topic

go




Top | News | Developer | Find PDF Tools | Sponsorship | Tips | Home



Debenu's Planet PDF - a comprehensive site exclusively focused on Adobe Acrobat/PDF users and uses. Debenu's Planet PDF - Resources for Adobe Acrobat and PDF users

Please post PDF-related questions to our Planet PDF Forum forums.planetpdf.com. To send comments about this site please visit our contact page.
Planet PDF, Planet PDF Forum, PDF SDK - Debenu Quick PDF Library and Debenu are all copyright
© 2011 Debenu Pty Ltd.. All Rights Reserved. Privacy policy.