Ahnenblattportal Forum Index
 •Portal  •Imprint  •Forum  •Search  •Profile  •Log in to check your private messages  •Log in   •Register  

 1031: Diacritics in PDF files

Post new topicReply to topic
Author Message
ivod




Gender:

Joined: 26 Mar 2013
Posts: 8
Topics: 2


czechrepublic.gif

PostPosted: 19.09.2013, 07:14    1031: Diacritics in PDF files  Reply with quoteBack to top

Hello all,

two weeks ago I exported my family tree to PDF with success. But now the exported PDF files miss some diacritic signs used in Czech code page (wedges above r, c, n, ...): I tried to look for embedded fonts packed into the PDF file and found this difference:
Good PDF:
Arial (Embedded Subset)
Type: TrueType (CID)
Encoding: Identity-H
Object Number: 16
...
Bad PDF:
Arial (Embedded)
Type: TrueType
Encoding: WinAnsiEncoding
Object Number: 8
...

But I do not find any option how to affect the embeded fonts...

2 weeks ago it worked, now not. Why???

PS: export to JPG, GIF, PNG works as expected (=well).

Best Regards

IvoD

OfflineView user's profileSend private message    
Marcus
Administrator



Gender:
Age: 45
Joined: 19 Jan 2006
Posts: 7440
Topics: 227


belize.gif

PostPosted: 19.09.2013, 17:13    (No subject)  Reply with quoteBack to top

Hello Ivo,

why it worked two weeks ago and doesn't work now is something I can't help you without more information what change in between on your system, data or Ahnenblatt.

But maybe I can help you generate a pdf where all signs show up as expected: Just try a pdf-printer and "print" your tree into an pdf-file!
A pdf-printer is a tool that installs itself as a printer into your system but doesen't print paper - it "prints" files! With a pdf-printer (like "FreePDF" e.g.) you can then save any file you create (from all you applications, not only Ahnenblatt!) in a pdf by using the print-dialoge of the respective software and the new pdf-printer of your system.
Marcus

_________________
Fragen und Antworten rund um Ahnenblatt (Knowledge Base)

OfflineView user's profilePersonal Gallery (1)Send private messageSend e-mail    
ivod




Gender:

Joined: 26 Mar 2013
Posts: 8
Topics: 2


czechrepublic.gif

PostPosted: 19.09.2013, 21:06    (No subject)  Reply with quoteBack to top

Hello Marcus,

I tried PDF Creator as soon as I found this strange behavior - all wedges are OK. But PDF Creator divides the whole family tree into pages (A3, A2, ...), Ahnenblatt can create "one page tree". PDF Creator is only workaround, not the solution.

Ahnenblatt knows how to create internationalized PDF files, but when I tested all the family tree export options (full tree, only fathers, up to level 4, ...) I accidentally switched-over some important option. But I do not know what option Sad and how to repair it.

What information should help you (or Dirk) to identify the problem?

Thank you

IvoD

OfflineView user's profileSend private message    
Marcus
Administrator



Gender:
Age: 45
Joined: 19 Jan 2006
Posts: 7440
Topics: 227


belize.gif

PostPosted: 20.09.2013, 01:59    (No subject)  Reply with quoteBack to top

The pdf Creator should be able to put all one one sice too. Maybe you have to change the size of the "paper" first? As far as I remember in the printer or page setup of Ahnenblatt when generating the tree.

If you have a test-file which you send me, maybe I can find a difference in the export of the pdf-export of Ahnenblatt. I will also search our forum if one of our users already had a problem like that.
Marcus

_________________
Fragen und Antworten rund um Ahnenblatt (Knowledge Base)

OfflineView user's profilePersonal Gallery (1)Send private messageSend e-mail    
Marcus
Administrator



Gender:
Age: 45
Joined: 19 Jan 2006
Posts: 7440
Topics: 227


belize.gif

PostPosted: 20.09.2013, 02:08    (No subject)  Reply with quoteBack to top

I found an similiar older error-descritpion:
http://www.ahnenblattportal.de/viewtopic.php?p=35719#35719

Maybe you can send your file, a corresponding pdf, a short descritpion (starting person, which tree etc.) and a link to this discussion to Dirk? Then he should be able to track it down.
His eMail-adress is found in the "?"-menu (then "info") of Ahnenblatt.
Marcus

_________________
Fragen und Antworten rund um Ahnenblatt (Knowledge Base)

OfflineView user's profilePersonal Gallery (1)Send private messageSend e-mail    
ivod




Gender:

Joined: 26 Mar 2013
Posts: 8
Topics: 2


czechrepublic.gif

PostPosted: 20.09.2013, 10:41    (No subject)  Reply with quoteBack to top

Hello Marcus,

You can test this problem at your computer very easy even without my data - change language of your Ahnenblatt to Czech - Czech template for family tree has character ř (r with wedge). I attached to this message img that shows part of my PDF files before / after. As you can see some diacritics characters are not affected (š = s with wedge) but some are affected (ř = r with wedge, see Předci x Predci, Jiří x Jirí).

I suppose this problem relates to the fonts packed into the PDF file (now Ahnenblatt at my PC packs into PDF another fonts that it packed two weeks ago). Font is set to "Arial - Central European" all the time.

Best Regards

IvoD



tree1.gif
 Description:
 Filesize:  32.23 KB
 Viewed:  6974 Time(s)

tree1.gif



OfflineView user's profileSend private message    
Marcus
Administrator



Gender:
Age: 45
Joined: 19 Jan 2006
Posts: 7440
Topics: 227


belize.gif

PostPosted: 20.09.2013, 14:29    (No subject)  Reply with quoteBack to top

« ivod » wrote:

You can test this problem at your computer very easy even without my data - change language of your Ahnenblatt to Czech - Czech template for family tree has character ř (r with wedge). I attached to this message img that shows part of my PDF files before / after.


Both characters are working well for me - see attached image.

Did you control your data in Ahnenblatt? Are the "ř" still where they should be or did they change to "r" and the printing dialog is working fine?
Just to clarify this point: Are the characters shown in the tree (before the export) correct? I would assume so, since you wrote that exports in other formats are working well.


Quote:

I suppose this problem relates to the fonts packed into the PDF file (now Ahnenblatt at my PC packs into PDF another fonts that it packed two weeks ago). Font is set to "Arial - Central European" all the time.


If it's a problem with one of the fonts on your computer (or in Ahnenblatt), just change the selected font. See image 2 where to change the font. Maybe the font "got lost" and Ahnenblatt exports with a standard font?
If all works well it uses the same font on the tree in Ahnenblatt and in the export to pdf.


I found another error though, in the function "adjust" ("Upravit" - "Angleichen" in german) and already contacted Dirk with the basic information and a link to this thread. Maybe these problems are somehow related and he can reproduce your error.
Marcus

PS Sorry for my lame fantasy about czech names, professions and places. It's just a test ;-)


----------------------------------------
#Wunschliste_1031_OFFEN



AB Unicode in PDF.png
 Description:
Left: Tree in Ahnenblatt
Right: Tree in the pdf

Sorry for my lame fantasy about czech names, professions and places. It's just a test ;-)
 Filesize:  44.03 KB
 Viewed:  6951 Time(s)

AB Unicode in PDF.png



AB Tafel Schriftart auswählen.png
 Description:
Where to change the font for you boxes in your trees.
 Filesize:  41.32 KB
 Viewed:  6951 Time(s)

AB Tafel Schriftart auswählen.png



_________________
Fragen und Antworten rund um Ahnenblatt (Knowledge Base)


Last edited by Marcus on 07.12.2013, 05:38; edited 2 times in total

OfflineView user's profilePersonal Gallery (1)Send private messageSend e-mail    
ivod




Gender:

Joined: 26 Mar 2013
Posts: 8
Topics: 2


czechrepublic.gif

PostPosted: 20.09.2013, 17:35    (No subject)  Reply with quoteBack to top

Hello Marcus,

I tried to change fonts there and back with no luck (btw I use standard Arial font as default and this font does not look corrupted in other apps).
The only difference I see in these two PDFs is font encoding of packed fonts. Working PDF file contains "Identity-H", not-working file contains "WinAnsiEncoding". But I am not able to find the place where to change this one. Maybe only app author can enlight the problem source.

Thank you for your patience.

Best Regards

IvoD



Fonts_1.gif
 Description:
 Filesize:  29.27 KB
 Viewed:  6929 Time(s)

Fonts_1.gif



Fonts_2.gif
 Description:
 Filesize:  24.06 KB
 Viewed:  6929 Time(s)

Fonts_2.gif



OfflineView user's profileSend private message    
Marcus
Administrator



Gender:
Age: 45
Joined: 19 Jan 2006
Posts: 7440
Topics: 227


belize.gif

PostPosted: 20.09.2013, 19:25    (No subject)  Reply with quoteBack to top

Something in your data has to be different ... I don't know where to search for the origin. Maybe Dirk has a new idea. It almost looks like Ahnenblatt doesen't recognize the utf-8 encoding of the file and then generates the pdf with the wrong encoding font.
Are you working with a Gedcom-File (*ged)? Then I would recommend to save your file in Ahnenblatt own format (*.ahn) and test it again.

If you want, you can test if it works with a file from me. I attach my little testfile with two persons. Maybe it works for you too andyou can see a difference?!
Marcus



Tschechische Zeichen.ahn
 Description:

Download
 Filename:  Tschechische Zeichen.ahn
 Filesize:  381 Bytes
 Downloaded:  148 Time(s)


_________________
Fragen und Antworten rund um Ahnenblatt (Knowledge Base)

OfflineView user's profilePersonal Gallery (1)Send private messageSend e-mail    
ivod




Gender:

Joined: 26 Mar 2013
Posts: 8
Topics: 2


czechrepublic.gif

PostPosted: 21.09.2013, 16:33    (No subject)  Reply with quoteBack to top

Hello Marcus,

your file works like a charm, my ahn files not (both my real family tree and new file created for testing purpose).

I attach here AHN file (new file created from scratch) and corresponding PDF file. If you find what is wrong in my AHN file and why Ahnenblatt packs wrong fonts and wrong encoding to PDF file I will be most grateful to you.

Best Regards

IvoD



Test.ahn
 Description:
Testing AHN file (two persons only, diacritics in names)

Download
 Filename:  Test.ahn
 Filesize:  278 Bytes
 Downloaded:  153 Time(s)


Test_ahn.pdf
 Description:
PDF with corrupted diacritics

Download
 Filename:  Test_ahn.pdf
 Filesize:  841.88 KB
 Downloaded:  165 Time(s)


OfflineView user's profileSend private message    
Marcus
Administrator



Gender:
Age: 45
Joined: 19 Jan 2006
Posts: 7440
Topics: 227


belize.gif

PostPosted: 22.09.2013, 02:41    (No subject)  Reply with quoteBack to top

I've no problem with your file. Everything works as expected and the pdf (that I generate here) has the right encoding.

Sorry, I have no idea what's going wrong on your computer ... do you use the newest Version 2.74?
Otherwise I can only suggest to play around with different styles and fonts ... maybe something changes. Confused
Or uninstall and reinstall Ahnenblatt. Maybe something got lost on your computer.

We have to hope that Dirk will find more here ...
Marcus

_________________
Fragen und Antworten rund um Ahnenblatt (Knowledge Base)

OfflineView user's profilePersonal Gallery (1)Send private messageSend e-mail    
ivod




Gender:

Joined: 26 Mar 2013
Posts: 8
Topics: 2


czechrepublic.gif

PostPosted: 22.09.2013, 14:11    (No subject)  Reply with quoteBack to top

Hello Marcus,

I used Ahnenblatt 2.71 ZIP version (no instalation, only unpacking to the target location). When I found this strange behaviour I downloaded and unpacked the latest version - 2.74, but strange behaviour persists. It is crazy that your ahn file looks well at my computer and my own ahn file looks corrupted. But my "corrupted" file looks well at your PC. Can you, please, check what fonts and what encoding is packed in the PDF file created from my "corrupted" ahn? Is it "Identity-H" or "WestAnsiEncoding"?

I suppose we must wait for Dirk to tell us what condition Ahnenblatt use for selecting the PDF file encoding.

I use ZIP version, therefore I can delete the app directory but I cannot uninstall the app. At this moment I run Ahnenblatt 2.74, Win 7 Czech, 64 bit. I try to play with different fonts but I never changed fonts since "corruption" appeared, therefore I do not believe much that this helps.

Best Regards

IvoD

OfflineView user's profileSend private message    
Marcus
Administrator



Gender:
Age: 45
Joined: 19 Jan 2006
Posts: 7440
Topics: 227


belize.gif

PostPosted: 23.09.2013, 01:39    (No subject)  Reply with quoteBack to top

« ivod » wrote:
Can you, please, check what fonts and what encoding is packed in the PDF file created from my "corrupted" ahn? Is it "Identity-H" or "WestAnsiEncoding"?


Oh sorry, with "right encoding", I meant that the pdf I generate has "Identity-H" encoding.
Fonts: "Arial".
Strange Surprised
Marcus

_________________
Fragen und Antworten rund um Ahnenblatt (Knowledge Base)

OfflineView user's profilePersonal Gallery (1)Send private messageSend e-mail    
ivod




Gender:

Joined: 26 Mar 2013
Posts: 8
Topics: 2


czechrepublic.gif

PostPosted: 23.09.2013, 18:42    (No subject)  Reply with quoteBack to top

« Marcus » wrote:
Oh sorry, with "right encoding", I meant that the pdf I generate has "Identity-H" encoding.

"Identity-H" is right encoding.

I am affraid we must wait for Dirk.

Best Regards

IvoD

OfflineView user's profileSend private message    
Display posts from previous:      
Post new topicReply to topic


 Jump to:   




Show permissions


Board Security

Powered by Orion based on phpBB © 2001, 2002 phpBB Group
CBACK Orion Style based on FI Theme
All times are GMT + 2 Hours



[ Page generation time: 0.1085s (PHP: 89% - SQL: 11%) | SQL queries: 55 | GZIP enabled | Debug on ]