Print Page | Close Window

Differebd behaivour fo characters

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=3093
Printed Date: 04 Apr 26 at 6:52PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Differebd behaivour fo characters
Posted By: redak105
Subject: Differebd behaivour fo characters
Date Posted: 23 Mar 15 at 3:48PM
Hi,
managed to show Czech characters in PDF form.
But I have problem with character space. After I add some Czech character, all string in form field gets double spacing of characters. This cause to disappear half of text.
Somebody had same problem?



Replies:
Posted By: mLipok
Date Posted: 23 Mar 15 at 4:39PM
Show repro example.



-------------
Here you can find description how to test my examples:
http://www.quickpdf.org/forum/forum_posts.asp?TID=2932&PID=12600&title=drawcapturedpagematrix-matrix-howto#12600


Posted By: redak105
Date Posted: 23 Mar 15 at 5:01PM
http://s3.postimg.org/7u5ky8mtf/PDF.png


Posted By: mLipok
Date Posted: 23 Mar 15 at 5:05PM
and How you trying to fill this field in your code (show repro script).
edit: part of your code.



-------------
Here you can find description how to test my examples:
http://www.quickpdf.org/forum/forum_posts.asp?TID=2932&PID=12600&title=drawcapturedpagematrix-matrix-howto#12600


Posted By: redak105
Date Posted: 23 Mar 15 at 5:12PM
Basicaly:
    int fontID = [DQPL AddTrueTypeFont:@"Arial {1250}" :1];
    
    NSLog( @"%d", [DQPL SelectFont:fontID]);
    
    [DQPL SetFontFlags:1 :0 :0 :1 :0 :0 :0 :0];
    int newFontID = [DQPL AddFormFont:fontID];
    
    // update font
    int field_count = [DQPL FormFieldCount];
    while (field_count > 0)
    {
        NSLog(@"%@", [DQPL GetFormFieldTitle:field_count]);
        
        NSLog(@"Add font %d", [DQPL SetFormFieldFont:field_count :newFontID]);
        
        field_count--;
    }
    
    // set form field
    [DQPL SetFormFieldValueByTitle:@"Main_Name" : @"ěščřžýáíé "];
    
    // flate form field
    field_count = [DQPL FormFieldCount];
    while (field_count > 0)
    {
        [DQPL UpdateAndFlattenFormField:field_count];
        
        field_count--;
    }


Posted By: redak105
Date Posted: 24 Mar 15 at 3:50PM
Any idea?



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk