Telerik Forums
Telerik Document Processing Forum
5 answers
2.6K+ views
Hi,

I am trying to convert a HTML body to a PDF using HtmlFormatProvider and PdfFormatProvider. 

It works well when I try to create a pdf with "normal" characters, but when I use characters like "åäö" the characters is either missing or replaced with other character. 

I have seen a similiar issue that recommended to load in the fonts, but that did not solve the issue for me. 

I have added the code in a zip as an attchment to this issue. 

 

Thanks in advance.

Dimitar
Telerik team
 answered on 24 Sep 2021
1 answer
199 views

Is it possible to create AND password protect certain sections of a docx document using Blazor WordsProcessing?

 

MM

Dimitar
Telerik team
 answered on 23 Sep 2021
3 answers
1.1K+ views

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)
            {
                ;
            }
        }

1 answer
237 views

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. 

 

Tanya
Telerik team
 answered on 01 Sep 2021
1 answer
437 views

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

Tanya
Telerik team
 answered on 31 Aug 2021
1 answer
759 views

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

Tanya
Telerik team
 answered on 31 Aug 2021
1 answer
1.4K+ views
Hi there, after many wasted hours of trying to find the right documentation, I am still unable to find where or how one would add markup to a pdf. 

If possible, could you please point me in the right direction, or make a simple tutorial for us? 

I am currently using RadFixedDocument, and have been able to, through a list of data, render those items as text fields on the pdf. 

I am just unable to add a string which contains HTML, and have it render accordingly. 

It just renders as the string it is. 

Dimitar
Telerik team
 answered on 09 Aug 2021
4 answers
608 views

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

Duncan
Top achievements
Rank 1
Iron
 answered on 08 Aug 2021
0 answers
241 views

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?

Fernando
Top achievements
Rank 1
 updated question on 03 Aug 2021
1 answer
384 views

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 });


                NamedDestination destination = null;
                document.NamedDestinations.TryGetValue("services", out destination);

                if (destination != null)
                {
                    var loc = destination.Destination as Location;
                    var editor = new FixedContentEditor(destination.Destination.Page);

                    editor.Position.Translate(loc.Left.Value, loc.Top.Value);

                    CheckBoxField checkBoxField = new CheckBoxField("SampleCheckBox");
                    checkBoxField.IsChecked = true;

                    
                    editor.DrawText("Found the text box place!");
                }
Dimitar
Telerik team
 answered on 30 Jul 2021
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?