Telerik Forums
Telerik Document Processing Forum
1 answer
220 views
It should have the following features using latest version of the documentation:
1)The ability to set margins should be available.
2)The ability to export PDF files should be available.
3)I'd like to incorporate html content in various blocks, as well as one logo and signature.
Yoan
Telerik team
 answered on 07 Mar 2023
1 answer
109 views
Dimitar
Telerik team
 answered on 06 Mar 2023
0 answers
167 views

Dear Telerik Team,

We encounter an issue with export html data to pdf file using below code. For example,

using Telerik.Web.UI;

using OpenXmlSpreadsheet = DocumentFormat.OpenXml.Spreadsheet;
using Pdf = Telerik.Windows.Documents.Flow.FormatProviders.Pdf;
using te = Telerik.Windows.Documents.Flow.FormatProviders.Html;
using tm = Telerik.Windows.Documents.Flow.Model;
using tp = Telerik.Windows.Documents.Primitives;
using tt = Telerik.Windows.Documents.Spreadsheet.Theming;te.HtmlFormatProvider provider = new te.HtmlFormatProvider();

tm.RadFlowDocument document = provider.Import(HttpUtility.HtmlDecode(htmldata));
tt.ThemeFontScheme fs = new tt.ThemeFontScheme("Arial", "Helvetica", "sans-serif");
tt.DocumentTheme theme = new tt.DocumentTheme("PDF", document.Theme.ColorScheme, fs);
document.Theme = theme;
document.Sections[0].PageMargins = new tp.Padding(50, 25, 50, 25);
Pdf.PdfFormatProvider providerPdf = new Pdf.PdfFormatProvider();
byte[] fileBytes = providerPdf.Export(document);

 

"providerPdf.Export(document);" this line throws exception "An exception occurred during a WebClient request" whenever we include <img src="/image path/image.png" /> html tag.

Your support is appreciated.

 

 

Pravin
Top achievements
Rank 1
 asked on 03 Mar 2023
0 answers
102 views

Please try wps application to open docx file that generated by telerik document processing.    www.wps.cn

header and footer are not displayed .

file was generated by ASP.NET Core WordsProcessing Key Features Demo | Telerik UI for ASP.NET Core

 

 
alex
Top achievements
Rank 1
 asked on 24 Feb 2023
1 answer
295 views

I am trying to use Telerik document processing to append some text to an existing pdf document. The text is in Arabic language, that is,  it is Unicode and it has  right to left direction. The resulted pdf document does not show the text even though I can it render the text if I changed the text to  English.

Does Telerik pdf document processing library support Arabic text?

Yoan
Telerik team
 answered on 15 Feb 2023
1 answer
188 views

Hi,

I'm using IWorksheetExporter (Telerik.Documents.SpreadsheetStreaming library)  to create big Excel files, ~400 mb xlsx.

I need to add notes to header cells like what is available here https://docs.telerik.com/devtools/document-processing/libraries/radspreadprocessing/features/notes but it doesn't look to be available in the Streaming library.

I see two possible workarounds.

  1. Create my header row with RadSpreadProcessing and reopen the same file for the batch processing with the streaming dll. But I can't find how to append to a worksheet, the only thing that looks like appendable to an existing file is new worksheet.
  2. Create the big file with the streaming library and reopen it with RadSpreadProcessing to add the notes. What will be the performance hit to do that? Does opening an excel file load everything in memory? So saving it back will also recreate the whole file?
  3. Do you have another solution

NB. Trying to completely create this file via the RadSpreadProcessing library throw a "Stream was too long" from within the library while saving it.

NB. I'm using the latest version from the nuget stream.

Thanks

Nikolay Demirev
Telerik team
 answered on 13 Feb 2023
1 answer
432 views

I have installed the necessary nuget packages for pdf processing in an exisiting Asp.Net Core (.Net 7.0) Blazor project.

- Telerik.Windows.Documents.Core 2023.1.104
- Telerik.Windows.Documents.Fixed 2023.1.104
- Telerik.Windows.Zip 2023.1.104

In the OnClick handler of a button, the first line of code throws an exception:                   

 

       public void EditPdfDocument(MouseEventArgs args)
        {
            var provider = new PdfFormatProvider(); // exception is thrown here
            var doc = provider.Import(File.ReadAllBytes(@"path-to-file.pdf"));

            // ...
        }

Exception details:

System.TypeLoadException
  HResult=0x80131522
  Message=Could not load type 'System.Windows.Rect' from assembly 'WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
  Source=Telerik.Windows.Documents.Fixed
  StackTrace:
   at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.PdfFormatProvider..ctor()
  ...


Dimitar
Telerik team
 answered on 06 Feb 2023
1 answer
91 views

Hello,

I would like to know how can i rotate a given pdf document using Telerik Document Processing Library.

 

Thank you

Dimitar
Telerik team
 answered on 06 Feb 2023
1 answer
80 views

Hi,

Is there a way using the Telerik SpreadProcessing library to manipulate the external references in an Excel file?

eg change the source to another file?

thx in advance!

Dimitar
Telerik team
 answered on 02 Feb 2023
1 answer
250 views

How can I format a set of ranges in a worksheet as a table using document processing?

I couldn't find any source to this matter.

I have attached a screenshot of the Excel function is needed to the desired result.

Dimitar
Telerik team
 answered on 30 Jan 2023
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?