Can I save content from richTextBox as pdf?
Like as rtf saving:
richTextBox1.SaveFile(saveFile1.FileName, RichTextBoxStreamType.PlainText);
Thank you for contacting Syncfusion support.
We have prepared a sample to meet your requirement and in this sample, we have done the following.
1. Selected all text from RichTextBox as RTF.
2. Loaded RTF as Stream using Essential DocIO.
3. Convert loaded Word document into PDF using Essential DocIO and Essential PDF.
Please find the below sample which illustrates the same. Please let us know if it helps you.
Sample link
If we misunderstood any of your requirement, then kindly provide us your sample or modified above sample and screenshot/output Word document of the expected result along with input which will be helpful to provide you the appropriate solution.
Please let us know if you have any other questions.
Regards,
Sethumanikkam.Y
Thank you, it works. But proper formatting of rtf seems hard, html much easier. So I think I will use WebBrowser. Can I save content of WebBrowser to pdf?
Thank you!
Hi, it works with my sample project but does not work with my real project.
Assembly versions are identical in sample and real project: 15.1460.0.33
As a trial I copied QtBinaries folder from sample to real project but I get this error message:
---------------------------
07f238b5-e00d-4d44-8bd3-5e76439e330b
---------------------------
This application failed to start because it could not find or load the Qt platform plugin "windows".
Reinstalling the application may fix this problem.
What could be the problem?
-- I edited my previous post but new lines are disappeared --
Hi,
I checked the versions (VS Path):
C:\Program Files (x86)\Syncfusion\Essential Studio\15.1.0.33\Assemblies\4.6\Syncfusion.Compression.Base.dll
C:\Program Files (x86)\Syncfusion\Essential Studio\15.1.0.33\Assemblies\4.6\Syncfusion.HtmlConverter.Base.dll
C:\Program Files (x86)\Syncfusion\Essential Studio\15.1.0.33\Assemblies\4.6\Syncfusion.Pdf.Base.dll
I copied the full QtBinaries folder from here: c:\Program Files (x86)\Syncfusion\WebKitHTMLConverter\15.1.0.33\QtBinaries\
So I think it should not be a version problem.
And in a separated, small project it is working (with same assemblies + webkit).
The problem is the hungarian accented letters in the path of program folder. Can I solve this? It is a multilingual software so various letters can be in the program path.
- 10 Replies
- 3 Participants
-
VH Vhalaky
- Jul 11, 2017 12:15 PM UTC
- Aug 7, 2017 09:27 AM UTC