将文本框数据导出为阿拉伯PDF并发送到某些ID [英] Export the text box data as Arabic PDF and mail to some ID

查看:65
本文介绍了将文本框数据导出为阿拉伯PDF并发送到某些ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我有几个文本框(名称,fname,mname)和两个复选框(英语和阿拉伯语)
当我选择英语"复选框时,应在这些文本框中从左侧输入文本,如果我选择阿拉伯语"复选框,则应在这些文本框中从右侧输入文本.之后,我想将其导出为PDF,然后将其导出为某些ID.好像现在英语是使用itextsharp完成的,而阿拉伯语却没有完成.
请帮忙
谢谢前进

Hi,
I have several textboxes(name,fname,mname) and two check boxes( English and Arabic)
when i select the English check box the text should be entered from the left side in those text boxes if i select the Arabic Check box the text should be entered from the right in those text boxes. After that i want to export it to as a PDF and mali to some ID. As if now English is done using itextsharp but Arabic side not done.
please help out
Advance in thanks

推荐答案

使用此代码,我使用此代码创建波斯(farsi)pdf.

Hi Use this coe, i use this code to create persian(farsi) pdfs.

PdfReader pdfReader = new PdfReader(Request.MapPath(ReportPath));

var MemoryStream = new MemoryStream();
PdfStamper pdfStamper = new PdfStamper(pdfReader, MemoryStream);
pdfStamper.FormFlattening = true;

AcroFields pdfForm = pdfStamper.AcroFields;


pdfForm.SetField("PDF Field Name", Report.Customer.Title);
//and Set Other Info

pdfStamper.Close();

pdfReader.Close();

string FilePath = Server.MapPath("PDF File Path");
byte[] bytes = MemoryStream.ToArray();
using (FileStream FS = new FileStream(FilePath, FileMode.Create))
{
    FS.Write(bytes, 0, bytes.Length);
}
return "PDF File Path";



最好的问候



Best Regards


在创建BaseFont时,将您的编码值更改为1256(这是阿拉伯语).这可能可以解决您的问题.您可以在下面的链接中查看.


http://msdn.microsoft.com/en-us/library/cc195058.aspx [ ^ ]
while creating BaseFont, change your encoding value to 1256(this is for arabic).THis may solve your problem. You can check out below link.


http://msdn.microsoft.com/en-us/library/cc195058.aspx[^]


我知道一个免费工具免费数据导出 [
I know a Free tool free dataexport[^], it can export data to PDF, html,xml,excel,word,text,csv,dbf etc.You can give it a try. Hope it works.


这篇关于将文本框数据导出为阿拉伯PDF并发送到某些ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆