hello,
i'm working on function to export word to PDF, and the result is inconherent, i'm loosing the special caracter like "é" , "ô". the document is in french language, also the style of wording of the document.
this is my function, any suggestion to resolve it?
regards.
public static void ConvertWordtopdf(string input, string output)
{
var docxProvider = new Telerik.Windows.Documents.Flow.FormatProviders.Docx.DocxFormatProvider();
var pdfProvider = new Telerik.Windows.Documents.Flow.FormatProviders.Pdf.PdfFormatProvider();
try
{
//var docxBytes = File.ReadAllBytes(input);
var docxBytes = System.IO.File.OpenRead(input);
RadFlowDocument docx = docxProvider.Import(docxBytes);
var pdfBytes = pdfProvider.Export(docx);
File.WriteAllBytes(output, pdfBytes);
docxBytes.Dispose();
}
catch (Exception ex)
{
;
}
}
Dear Telerik Developers,
Since the Xamarin Platform realize the Rich Text Editor by a webview control, I have to convert my Rtf files into html format before loading.
According to the Html Conversion document, headings ( h1 - h6 ) styles have nothing to do with the Outline Level, and would be lost when exporting to other formats.
While in my scenario, the outline data of original Rtf document should be kept while converting back from html format to Rtf code.
My suggestion is adding a "EnableOutlineToHeadingsConversion" option to both HtmlImportSettings and HtmlExportSettings classes, so that we can decide if the Outline level data should be converted into corresponding Headings Style ( for example, Outline Level 1 -> h1 ) and vice versa.
HtmlFormatProvider provider = new HtmlFormatProvider();
HtmlExportSettings exportSettings = new HtmlExportSettings();
exportSettings.BordersMinimalThickness = 1;
exportSettings.DocumentExportLevel = DocumentExportLevel.Fragment;
exportSettings.IndentDocument = true;
exportSettings.EnableOutlineToHeadingsConversion = true;
provider.ExportSettings = exportSettings;
I sincerely hope this could be taken into Telerik's developing consideration.
Regards,
Thank you very much.
I'm trying to convert a DataTable to a spreadsheet.
According to the documentation:
To use the DataTableFormatProvider you need to reference the Telerik.Windows.Documents.Spreadsheet assembly.
After adding a reference to this assembly, Visual Studio still does not recognize it. Where can I find the DataTableFormatProvider?
Thanks,
Tim
I am using versions 2021.1.322.40 of Core.dll, Fixed.dll and Zip.dll and when exporting a RadFixedDocument to pdf it tells me that the value of RadFixedDocument cannot be converted to RadFlowDocument
What can I do to solve this problem?
I am using this :
https://docs.telerik.com/devtools/document-processing/libraries/radpdfprocessing/formats-and-conversion/pdf/pdfformatprovider
Hi
Using Telerik.Windows.Documents.Spreadsheet.Model.Workbook class, it seems there is no VLOOKUP function, although there is a LOOKUP function which works almost the same way. The lack of VLOOKUP specifically impacts my ability to load existing Excel documents. Is there a way to add a VLOOKUP function to the SpreadProcessing engine?
Thanks,
Guy
We are migrating to telerik but our main issue is that XlsFormatProvider keep gaving OutOfMemoryException when importing files either on stream or bytes, and this where easily imported on same machines using ASPOSE dlls
is there a way to have this sorted out another library i should use or different class?
I need to put a series of aligned checkboxes in a specific location on a pdf.
We are able to fill in all the text fields and I have a destination added to the nameddestinations and I can draw text into it with the fixedcontenteditor, but I can not figure out how to put checkboxes on the form.
document.NamedDestinations.Add("services", new Location() { Page = document.Pages[0], Left = 500, Top = 400 });
We are using a RadFixedDocument and RadFixedDocumentEditor to try to create a sample PDF
I can not find any documentation showing how to actually change the font info. Where are the specifics? Here is the code I have tried.
RadFixedDocument document = new RadFixedDocument();
using (RadFixedDocumentEditor editor = new RadFixedDocumentEditor(document))
{
List list = editor.Lists.AddList(ListTemplateType.BulletDefault);
editor.ParagraphProperties.ListId = list.Id;
editor.ParagraphProperties.ListLevel = 0;
editor.InsertParagraph();
// editor.CharacterFormatting.FontFamily.LocalValue = new FontFamily("Times New Roman");
editor.InsertRun(new FontFamily("Times New Roman"), new FontStyle(3) , new FontWeight(15) , "Blazor Demo:");
editor.ParagraphProperties.ListLevel = 1;
editor.InsertParagraph();
editor.InsertRun("This is a prototype to explore the various Architectual Elements needed for a SPOT rewrite.");
editor.InsertParagraph();
editor.InsertRun("Explore Blazor in regards to moving from a ASP.Net WebForm development team to Blazor MVC structure with.Net Core.");
editor.InsertParagraph();
editor.InsertRun("✓Use of EntityFramework within Blazor /.Net Core.");
editor.InsertParagraph();
editor.InsertRun("✓Basic Search screen with search fields.");
editor.InsertParagraph();
editor.InsertRun("✓Basic Edit screen with field validation both RealTime and on submitting.");
editor.InsertParagraph();
editor.InsertRun("✓Telerik Blazor controls, specially the Grid with Sorting and Paging, Dialogs, Pop_up windows.");
editor.InsertParagraph();
editor.InsertRun("✓BootStrap use with Blazor for page support of any screen resolution(within reason!).");
editor.InsertParagraph();
editor.InsertRun("✓Logging.");
editor.InsertRun("✓Pass Fortify! Test with current SPOT settings.");
editor.InsertParagraph();
editor.InsertRun("✓Custom field validation(SSN / FIN, Phone number).");
editor.InsertParagraph();
editor.InsertRun("✓Creating our own Blazor components for fields like SSN.");
editor.InsertParagraph();
editor.InsertRun("✓Handle error messages from the server.");
editor.InsertParagraph();
editor.InsertRun(" Explore configuration files ");
editor.InsertParagraph();
editor.InsertRun(" Global Exception Handling and Logging ");
editor.InsertParagraph();
editor.InsertRun("✓Validation messages Resource file and i18n ");
editor.InsertParagraph();
editor.InsertRun(" Explore validation messages store in the DB.");
editor.InsertParagraph();
editor.InsertRun(" Authentication ");
editor.InsertParagraph();
editor.InsertRun("✓Session Timeout ");
editor.InsertParagraph();
editor.InsertRun(" Does it work with XUNIT ?");
editor.InsertParagraph();
editor.InsertRun("✓Does it work with Resharper ?");
editor.InsertParagraph();
editor.InsertRun("✓Popup windows and confirmation dialogs.");
editor.InsertParagraph();
editor.InsertRun("✓Calling stored procedures from EF core.");
editor.InsertParagraph();
editor.InsertRun(" SSRS Reporting Viewer and report interfacing."); //Dave talk to Cynthia, Cynthia says talk to Chou, Zhang
editor.InsertParagraph();
editor.InsertRun(" PDF generation "); //Dave do a pdf of this list
editor.InsertParagraph();
editor.InsertRun(" Unhandled Exception Handling(i.g.Reload message)");
}
Can I add Bookmarks at PDF page ? How ?
Thanks