Telerik Forums
Telerik Document Processing Forum
2 answers
223 views

I have a large project coming up that will be a combination of ASP.net core and .Net core console applications to generate various types of documents for customer consumption.  I am trying to take this time now to learn how to use the Telerik document libraries.  This page seems to imply that there are specific libraries for .net core https://docs.telerik.com/devtools/document-processing/getting-started/first-steps.

Using nuget, I added Telerik.Documents.Core, Fixed, Flow, Flow.FormatProvideders.PDF to the project..  But when referencing the libraries in the Program.cs using section, it will only autofill Telerik.Documents.Core and Telerik.Zip.  Visual Studio 19 does not recognize.Fixed or .Flow libraries.

If I change to the telerick.windows versions of the libraries, VS does add all the libraries without a problem to the application.  it compiles but when executing, it throws an error as missing libraries.

What am I missing?  Should we only create standard .net console apps & only use the .net core libraries when integrating with asp.net core applications?

Marianne
Top achievements
Rank 1
Iron
Iron
 answered on 22 Sep 2020
3 answers
543 views

Hi!

I am using RadWordsProcessing  and load Word`s file.

RadFlowDocument document;
DocxFormatProvider fileFormatProvider = new DocxFormatProvider();
string fileName = Server.MapPath("./Data/Document.docx");
using (FileStream input = new FileStream(fileName, FileMode.Open))
{
            document = fileFormatProvider.Import(input);
}
RadFlowDocumentEditor editor = new RadFlowDocumentEditor(document);

 

Text in the file is written in Times New Roman font.

But when exporting to pdf, the font changes to Segoe UI font.

Why?

 

 

 

 

 

Martin
Telerik team
 answered on 31 Aug 2020
1 answer
109 views

I am using version 2019.1.215.

I am importing an excel file to modify some cell values and exporting it.

The issue is that the exported file is displaying the filter icon for the merged cells.

Is this fixed in the latest versions?

Dimitar
Telerik team
 answered on 20 Aug 2020
3 answers
378 views

Using Telerik UI for Blazor.

Just started experimenting with PDFs, so maybe I just overlooked it.

I can easy draw an image with full opacity, but nowhere in the RadFixedPage or FixedContentEditor settings seems to be anything to set opacity.

Martin
Telerik team
 answered on 19 Aug 2020
5 answers
1.2K+ views

Hello,

table cell borders set using

table.Borders = new TableBorders(new Border(BorderStyle.Single));

are missing when using PdfFormatProvider to export a PDF. However, they are present when exporting to DOCX. Please advise. Thanks.

valentino
Top achievements
Rank 1
 answered on 19 Aug 2020
3 answers
1.2K+ views

Hi,

I'm trying to export excel to PDF with letter head on each page of the PDF. how can I achieve it? 

 

Thanks,

Niraja.

Dimitar
Telerik team
 answered on 18 Aug 2020
1 answer
145 views

I am using version 2019.1.215 and I am unable to import anything to fix the missing ScatterSeries classes.

https://docs.telerik.com/devtools/document-processing/libraries/radspreadprocessing/features/charts/series

SeriesGroup scatterSeriesGroup = chart.Chart.SeriesGroups.First() as ScatterSeriesGroup;
ScatterSeries scatterSeries = scatterSeriesGroup.Series.First() as ScatterSeries;
scatterSeries.Marker = new Marker();
scatterSeries.Marker.Symbol = MarkerStyle.Plus;
scatterSeries.Marker.Size = 22;
scatterSeries.Outline.Fill = new SolidFill(Colors.Red);
Martin
Telerik team
 answered on 13 Aug 2020
1 answer
3.0K+ views

I have a .net core 3.1 service application.

My company has bought the DevCraft subscription so I believe this gives me access to the Telerik document Process module.

Which nuget packages do I need to install to be able to load and print a PDF document?

I have found a few posts suggesting 'RadPdfViewer' is the class I need to get access to, but I cannot find a nuget package that allows this to be used in my project.

I found this post:- https://feedback.telerik.com/document-processing/1356074-documentprocessing-printing

But it doesnt compile and I cannot seem to be able to use this code snippet:-

            RadPdfViewer pdfViewer = new RadPdfViewer();
            PdfFormatProvider provider;

            using (MemoryStream memoryStream = new MemoryStream())
            {
                using (Stream stream = File.OpenRead(fileLocation))
                {
                    stream.CopyTo(memoryStream);
                }
                
                provider = new PdfFormatProvider(memoryStream, FormatProviderSettings.ReadOnDemand);
                pdfViewer.Document = provider.Import();

                string fileName = new FileInfo(fileLocation).Name;
                PrintSettings printSettings = new PrintSettings() { DocumentName = fileName };

                pdfViewer.Print(dialog, printSettings);
            }

Would love some assistance on this please, thank you.

Dimitar
Telerik team
 answered on 24 Jul 2020
1 answer
675 views

In one of the application, we are using Telerik Pdf Processing library to convert docx template into pdf. For a few docx templates, exported PDFs are not identical to docx templates.

I've attached both files - template and generated pdf. In the generated pdf, a table is moved into right side and a few portion of right side is cut (Can't see complete table in pdf).

Template: https://drive.google.com/file/d/1u0geoIkSzT3iRAg3xJaSlNsOmC00_078/view?usp=sharing

Generated PDF Output: https://drive.google.com/file/d/1ceNyE4vUxxafaVOZr7zSwDfUm111eu2L/view?usp=sharing

 

Following code, we are using to generate pdf from docx

 

Can anybody tell us what is missing here in code? 

Why a table is cut from right side in the generated pdf? Are there any ways to fix this issue?

 

It would be a great help if anyone could help to fix this issue.

 

[TestMethod]
        public void TelerikPdfConversionTest()
        {
            string templatePath = Path.Combine(_telerikTemplateDirectory, $@"DependentNearing19.docx");
            byte[] data = File.ReadAllBytes(templatePath);
            var provider = new DocxFormatProvider();
            RadFlowDocument doc = provider.Import(data);
 
            string templateName = Path.GetFileNameWithoutExtension(templatePath);
            string pdfPath = Path.Combine(_telerikTemplateDirectory, $@"{templateName}-output.pdf");
            if (File.Exists(pdfPath))
            {
                File.Delete(pdfPath);
            }
            var pdfProvider = new PdfFormatProvider();
            using (Stream output = File.OpenWrite(pdfPath))
            {
                pdfProvider.Export(doc, output);
            }
            Assert.IsTrue(File.Exists(pdfPath));
        }
Martin
Telerik team
 answered on 23 Jul 2020
1 answer
580 views

When I create a `TableCell` in a flow document it is has a left & right padding of ~7.  How can I change the default padding?

I assume styles, right?  https://docs.telerik.com/devtools/document-processing/libraries/radwordsprocessing/concepts/styles

I tried changing the padding but it says there's only a getter: `tableStyle.TableCellProperties.Padding = new Padding(0)`

Dimitar
Telerik team
 answered on 22 Jul 2020
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?