Telerik Forums
Telerik Document Processing Forum
2 answers
336 views

Hi

I'm using the next code to generate a simple pdf

RadFixedDocumentEditor editor = new RadFixedDocumentEditor(document)

editor.SectionProperties.PageSize = new Size(Unit.MmToDip(210), Unit.MmToDip(297));
editor.ParagraphProperties.HorizontalAlignment = HorizontalAlignment.Center;
editor.CharacterProperties.Font = FontsRepository.TimesRoman;
editor.InsertParagraph();
editor.InsertRun("Test è ò");
                
This issue is that the è and ò character are NOT printed at all.

Tnx               ...

Tanya
Telerik team
 answered on 11 May 2020
1 answer
67 views

https://docs.telerik.com/devtools/document-processing/libraries/radwordsprocessing/cross-platform

Accessed from this page:

https://docs.telerik.com/devtools/document-processing/libraries/radwordsprocessing/getting-started

Thanks,

Joel

Dimitar
Telerik team
 answered on 29 Apr 2020
5 answers
475 views

Hi,

In my app on azure cloud, I need to convert  docx, xlsx and html file to pdf and, I'm trailing your library. The code from this example works fine locally but when I publish it to azure I get error 500. My test function app service runs in Standard pricing tier. Are there any specific requirements?

Thanks,

b.

Bill
Top achievements
Rank 1
 answered on 26 Apr 2020
1 answer
154 views
I know in acrobat you can create a form field with currency formatting.  Is this possible with PDFProcessing?  I have been able to right justify a field but not set a format.
Martin
Telerik team
 answered on 22 Apr 2020
6 answers
619 views

Hello,

I have some code to import a Word-document with MergeFields, than I MailMerge it with some data end export it to a new document.

This works fine, but I also want to fill a table in the document. How can this be done?

I was trying something like this, but this doesn't work ...

Thanks for any help you guys can give!

 

using System.Collections.Generic;
using System.IO;
using Telerik.Windows.Documents.Flow.Model;
using Telerik.Windows.Documents.Flow.FormatProviders.Docx;

public class ProccessDocument
{
    public ProccessDocument()
    {
        RadFlowDocument importDocument = new RadFlowDocument();

        DocxFormatProvider providerIn = new DocxFormatProvider();
        using (Stream input = File.OpenRead("import.docx"))
        {
            importDocument = providerIn.Import(input);
        }

        RadFlowDocument exportDocument = importDocument.MailMerge(GetData());

        DocxFormatProvider providerUit = new DocxFormatProvider();
        using (Stream output = File.OpenWrite("export.docx"))
        {
            providerUit.Export(exportDocument, output);
        }
    }

    private List<Schedule> GetData()
    {
        return new List<Schedule>()
            {
                new Schedule()
                {
                    Name = "John",

                    Items = new List<Item>()
                    {
                        new Item() { Date = "11/5/2016", Subject = "Soccer training" },
                    }
                },
                new Schedule()
                {
                    Name = "Debby",

                    Items = new List<Item>()
                    {
                        new Item() { Date = "10/5/2016", Subject = "Swimming" },
                        new Item() { Date = "12/5/2016", Subject = "Dancing" },
                        new Item() { Date = "15/5/2016", Subject = "Music" },
                    }
                },
            };
    }
}

public class Schedule
{
    public string Name { get; set; }
    public List<Item> Items { get; set; }
}

public class Item
{
    public string Date { get; set; }
    public string Subject { get; set; }
}

Tanya
Telerik team
 answered on 22 Apr 2020
3 answers
787 views
     I need to print document on shared printer from a web page, it's possible print a document?
Rumen
Telerik team
 answered on 17 Apr 2020
1 answer
136 views

     Hello, i use library for manipulate word (RadFlowDocumentEditor) and i need to save file in PDF i use PdfFormatProvider, i use free of 9 font in word for print a barcode, but after i save  in pdf does not print a font with barcode.

what can I do? It's possible include font?

riccardo
Top achievements
Rank 1
 answered on 09 Apr 2020
3 answers
1.1K+ views

Hi,

I am trying to convert a PDF to an image server side in our .Net MVC application.

I have seen this forum post https://www.telerik.com/forums/convert-pdf-to-jpg and it explains how to convert a pdf to an image but those libraries don't seem to be available in an MVC application. 

Is there a solution that I can use for my application?

Martin
Telerik team
 answered on 06 Apr 2020
2 answers
512 views

I have been banging my head on adding a PNG to a PDF.  I can do it with a JPG but no joy with PNG.

public void AddImage(RadFixedDocument document)
{
    FixedContentEditor editor = new FixedContentEditor(document.Pages[0]);
    using (FileStream fs = new FileStream("ADC.jpg", FileMode.Open, FileAccess.Read))
    {
        editor.Position.Translate(50, 50);
        editor.DrawImage(new ImageSource(fs, ImageQuality.High), 50, 50);
    }
}

 

Change the jpg to a png and I get this error:  System.NotSupportedException: 'Can not export other than Jpeg and Jpeg2000 and ImageQuality different than High'

I can change the ImageQuality to low and same error.  Is there an example of DrawImage with a png?

Carlos
Top achievements
Rank 1
 answered on 03 Apr 2020
6 answers
619 views

Hi, I wonder if you can help with my issue

How do you change the weight,  when writing a Microsoft Word document using RadFlowDocumentEditor?

I have a problem when I try to put a bold text, because I get the next error: The name 'FontWeights' does not exist in the current context

The code I'm using is:

 RadFlowDocument document = new RadFlowDocument();
 RadFlowDocumentEditor editor = new RadFlowDocumentEditor(document);

editor.InsertLine("PASO 3: Detección de riesgos para el nacimiento").FontWeight =  FontWeights.Bold;  

 

Tanya
Telerik team
 answered on 17 Mar 2020
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?