JasperReports PDF西里尔文字体重叠

时间:2017-12-29 11:05:12

标签: java jasper-reports export-to-pdf

我的PDF报告填写不好,西里尔字母相互重叠。请看一下this

当我使用其他编码时 - 我看不到特征(只有问号),但它没有堆叠。

我使用JasperReports添加了FontExtension库,我正在使用Times New Roman和CP1251编码like this。除了没有FontExtension的数字,Jasper不会打印任何符号。

这里是简单的代码:

#pragma mark - CNContactPickerViewController Delegate method implementation
(void)contactPicker:(CNContactPickerViewController *)picker didSelectContact:(CNContact *)contact
{
    NSMutableArray *contactNumberArray = [[NSMutableArray alloc]init];
    selectedName=[NSString stringWithFormat:@"%@",contact.givenName];
    NSLog(@"%@",selectedName);
    NSString *tempString = [NSString stringWithFormat:@"name : %@ %@ %@\n",contact.givenName, contact.familyName, contact.organizationName];
    //    // 1.  (Phone Numbers)
        tempString = [NSString stringWithFormat:@"%@phoneNumbers : ",tempString];
       // NSArray*phoneNumber = contact.phoneNumbers;
        for (CNLabeledValue *phoneNumber in contact.phoneNumbers)
        {
          CNPhoneNumber *phone = phoneNumber.value;
            tempString = [NSString stringWithFormat:@"%@<%@>",tempString,phone.stringValue];
             [contactNumberArray addObject:phone];
            selectedPhNumber=[[NSString stringWithFormat:@"%@",phone.stringValue] stringByReplacingOccurrencesOfString:@" " withString:@""];
             NSLog(@"%@",selectedPhNumber);
        }

         //2.  (Emails)
        tempString = [NSString stringWithFormat:@"%@\n Email : ",tempString];
        for (CNLabeledValue *email in contact.emailAddresses)
        {
            selectedEmail=[NSString stringWithFormat:@"%@", email.value];
            tempString = [NSString stringWithFormat:@"%@<%@>",tempString,email.value];
               [contactNumberArray addObject:email];
             NSLog(@"%@",selectedEmail);
        }
 [self sendRefferelDetailsToServer];

}

DOC和xlsx工作正常。

谢谢。

0 个答案:

没有答案