I have been trying to read a pdf file and convert it into another language selected by user via Google API. then I need to save the translated content to another file.
I have generated pdf file using c#.net and Angular but both are only supporting English language while most probably I have to translate file from English to other languages.
I have used jsPDF for angular and for C#.Net I have used UglyToad.PdfPig but I am not able to save other languages
did you try other PDF generation libraries?
i use PDFFlow and I know it supports latin, cyrillic and asian languages
For example this simple code creates Chinese text :
{
DocumentBuilder.New()
.AddSection()
.AddParagraph("在这输 在入文这输 入文字")
.SetFontEncodingName(EncodingNamesChineseSimplified.GBK_EUC_H)
.SetFontName(FontNamesChineseSimplified.SimSun).ToDocument()
.Build("Result.pdf");
}
the result pdf will be this:
try and tell me if you need further help or have any questions
Related
I am doing export to PDF functionality, it works perfect as i want , but it is not supporting gujarati language, Gujarati language data is not getting visible in PDF file.
I am using iTextSharp.dll for export to PDF.
Any suggestions will be highly appreciable.
I am working on a ASP .NET project where the requirement is to download a text area content as a file like .doc, .pdf and .txt.
I know we can download the plain text of text area as .txt using java script but the thing I want to know is,
How can I achieve the same for .doc and .pdf
is there any java script/jquery way to achieve this if not then what is the right way to do this in native C#.
examples or links would be great.
PDF and Word Documents are complex file types. If you want to generate these files client side, you'll need a javascript library that can generate files in these formats. I don't think these exist (as this is an uncommon request), but you can google it.
If I would be faced with a problem like this, I would post the value of the textbox back to the server and generate the files on the server. This SO post discusses how to create a pdf file in C#: How to generate a PDF?
Once you have created the file server side, you can then send it back to the client.
i'm trying to create a PDF by using database in ASP C#. PDF will include just titles and contents so what do i have to use to do such a thing and can you provide me a some examples? Thank you.
You can use iTextSharp which is an open source pdf library.
You can find a documentation format here.
Book reference : iText in Action
Generate PDF using iTextSharp can be a good startup on how to use iTextSharp to generate PDF using asp.net.
I would go for html -> pdf conversion. You can use a free command line utility wkhtmltopdf for it.
If you want something more complex like prepare multiple templates or store history of pdf outputs. Look at free reporting server jsreport. ( I am the author)
I am a new to the programming world. Just got a task to read a pdf file which is in Hindi language.
There are thousands of references, I got it on internet about how to read pdf file but unfortunately not about any for language specific.
Can anyone please help me on this?
Note: Each time when I read pdf it's coming as non readable text.
My web application displays MathML embedded in HTML using the MathPlayer plugin. I need to output to PDF. I have PDF components (Dynamic PDF, ABCpdf), but they don't know how to parse the MathML, of course.
Is there a library that can help me translate the MathML to an image or something that I can feed to the PDF components on the fly in the web application?
Design Science has a command line Windows executable (also available as a DLL) that will convert all of the MathML in a document to EPS for use in PDF. It's the Document Composer, which is part of the MathFlow SDK. Contact us if you're interested in more info or an evaluation.
FYI, I have also found another PDF component that supports MathML called AHFormatter. I have not tried it, but it apparently works very well.