It isn't clear whether or not this is supported by looking at the documentation or searching the forums.
Is it possible to export a PDF, with drawDom, that will have Chinese characters in it?
If so, how do you do it? Again, the documentation is spotty and at this point tells you different things at different locations as far as what font will be used by different parts of Kendo.
How can I use the built in styles? Like:
1. to apply word's color set to whole document
2. to apply word's style set to whole document
3. to apply a specific style like list1 to some sections
4. to apply built in table styles like "Accent 5" to a table
---------------------------
I have a multi-line text box in a web page. (Actually, I am "forced" to use the text box instead of the Rad Editor... see below.) The content will contain, therefore the line feed. While I insert the content, the line feed does not change to a line line. So what can I do? Now I split them into paragraph and insert but I think there should be a way to do it.
-----------------------------
I use a Rad Editor to capture some content. If I insert the HTML in the document, the color of some text does not appear in the word. I found out that the tags does not support in word processing.
IMHO, either we can find a way in defining how to apply color tags in Rad Editor like font color? Or Telerik may need to test the compatibility between Rad Editor and Word Processing.
It is very strange to me that both are Rad Controls but they are not "communicate" to each other. Actually when I purchase (recently), I think they shall be communicate to each other in much better way.
IMHO, the following tags must be supported:
. div, span, font color, size, weight
. ul li, ol li
Thanks.
Alfred
.
HI
I use the RadPdfProcessing API to generate Pdf document and preview the pdf file in WinForm App.
The pdf previewed by Acrobat Reader then the chinese char displayed normally,
but not works for Telerik.WinControls.UI.RadPdfViewer in WinForm
(same as http://www.telerik.com/clientsfiles/445045_Wrong.jpg?sfvrsn=0)
Generate pdf file c:\Hello1.pdf :
// Reference ://// FontsRepository.RegisterFont data ParameterTelerik.Windows.Documents.Fixed.Model.Fonts.FontsRepository.RegisterFont(new FontFamily("標楷體"), System.Windows.FontStyles.Normal, System.Windows.FontWeights.Normal, File.ReadAllBytes("C:\\Windows\\Fonts\\kaiu.ttf"));Telerik.Windows.Documents.Fixed.Model.Fonts.FontBase NewCreateFont;Telerik.Windows.Documents.Fixed.Model.Fonts.FontsRepository.TryCreateFont( new FontFamily("標楷體"), System.Windows.FontStyles.Normal, System.Windows.FontWeights.Normal, out NewCreateFont); // Reference : // // CREATING A PDF DOCUMENT Telerik.Windows.Documents.Fixed.Model.RadFixedDocument document2 = new Telerik.Windows.Documents.Fixed.Model.RadFixedDocument(); Telerik.Windows.Documents.Fixed.Model.RadFixedPage page2 = document2.Pages.AddPage(); Telerik.Windows.Documents.Fixed.Model.Editing.FixedContentEditor editor = new Telerik.Windows.Documents.Fixed.Model.Editing.FixedContentEditor(page2); editor.Position.Translate(50, 50); Telerik.Windows.Documents.Fixed.Model.Editing.Block block = new Telerik.Windows.Documents.Fixed.Model.Editing.Block(); block.GraphicProperties.FillColor = Telerik.Windows.Documents.Fixed.Model.ColorSpaces.RgbColors.Black; block.HorizontalAlignment = Telerik.Windows.Documents.Fixed.Model.Editing.Flow.HorizontalAlignment.Left; block.TextProperties.Font = Telerik.Windows.Documents.Fixed.Model.Fonts.FontsRepository.HelveticaBoldOblique; block.TextProperties.FontSize = 40; block.InsertText("RadPdfProcessing"); block.TextProperties.Font = NewCreateFont; // Telerik.Windows.Documents.Fixed.Model.Fonts.FontsRepository.Helvetica; block.TextProperties.FontSize = 12; block.InsertText(" 中文字 is a document processing library that enables your application to " + "import and export files to and from PDF format. The document model is " + "entirely independent from UI and allows you to generate sleek documents " + "with differently formatted text, images, shapes and more."); editor.DrawBlock(block, new System.Windows.Size(500, double.PositiveInfinity)); Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.PdfFormatProvider provider2 = new Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.PdfFormatProvider(); using (Stream output2 = File.OpenWrite("c:\\Hello1.pdf")) { provider2.Export(document2, output2); }
private void button1_Click(object sender, EventArgs e){ radPdfViewer1.LoadDocument("c:\\Hello1.pdf");}
My company decided to move from Infragistics to Telerik .
For PDF development I am using Telerik.Windows.Documents.Flow.FormatProviders.Pdf and Telerik.Windows.Documents.Flow.Model.RadFlowDocument to create PDF.PDF is complex with tables/images etc but I did not have any issue there.Everything was as in Telerik online spec.
Now I have different issue that was almost stopover for me.PDF that I got with Telerik is 10 times bigger in size then with Infragistics.
Example bellow will create the simplest PDF doc with only one line of text, and that document is 245 kb.Same example with Infragistic is 14 kb.
Exact same relations is also when I add images in..I can see that Telerik document is much higher in quality [when I put images] but we prefer size/performance then quality of PDF.
Can you point what I have to change? Is any FormatProviders.Pdf settings that I can use to create smaller size document ?Or ?
class TEST
{
public void ExportToPdf(string PdfURL)
{
Telerik.Windows.Documents.Flow.FormatProviders.Pdf.PdfFormatProvider provider =
new Telerik.Windows.Documents.Flow.FormatProviders.Pdf.PdfFormatProvider();
using (Stream output = File.OpenWrite(PdfURL))
{
Telerik.Windows.Documents.Flow.Model.RadFlowDocument document = CreateRadFlowDocument();
provider.Export(document, output);
}
}
private Telerik.Windows.Documents.Flow.Model.RadFlowDocument CreateRadFlowDocument()
{
RadFlowDocument document = new RadFlowDocument();
RadFlowDocumentEditor editor = new RadFlowDocumentEditor(document);
editor.ParagraphFormatting.TextAlignment.LocalValue = Alignment.Justified;
Section section = editor.InsertSection();
section.PageMargins = new Telerik.Windows.Documents.Primitives.Padding(4);
section.PageOrientation = Telerik.Windows.Documents.Model.PageOrientation.Landscape;
//test text
editor.InsertText("TEST Telerik.Windows.Documents.Flow.Model.RadFlowDocument PDF ");
return document;
}
}

Hi Team,
I need to automate a scenario of comparing 2 PDF files based on the content, format, alignment, etc. Is it possible to do it using Telerik Test Studio or any other telerik products.
--
Thanks,
Siva.

