Telerik Forums
Telerik Document Processing Forum
1 answer
146 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
540 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
641 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
1 answer
140 views
I'm exporting an list of people where the first column is a photo.

But regarless of changing the width/height the file size stays the same. Is there a way to reduce resolution ?

foreach (DataRow _dr in DS.Tables["PHOTO"].Rows)
          {
              FloatingImage image = new FloatingImage(sheet, new CellIndex(startRow, 0), 0, 0)
              {
                  ImageSource = new ImageSource((byte[])_dr["FOTO_EMPREGADO"], "jpg"),
                  Width = 65,
                  Height = 70
              };
 
              sheet.Shapes.Add(image);
 
              startRow++;
          }
Martin
Telerik team
 answered on 16 Mar 2020
3 answers
135 views
I'd like to know if with the new radWordsProcessing control/routines can be able to

1) load an existing docx.
2) Modify and replace some string and then
3) prepare and download to final user with the modified docx...

I've read all your documentation and I fear that I understand that we can not change the text of the document.
I've seen the merge field... but I don't know if I can put them in template doc ... that ... will be modify ...

This control is excellent ... to create ... but can the final user prepares a lot of templates and then can he use to make custom letters with some data?

merci... and thanks so much

geppo

Now I download the windows ... component... because I understand the need...

:-)

Dimitar
Telerik team
 answered on 05 Mar 2020
1 answer
313 views

 

Hello,

I want to open a docx, find and replace an image in the header and replace another image in the body. How can I achieve that?

Thanks

Dimitar
Telerik team
 answered on 05 Mar 2020
3 answers
150 views

Is this even possible?  I'd like some advice.

I'd like to be able to visually show a document on screen and build each page.  I'd like each page to be a grid with user selected number of columns and rows and be able to drag the borders to change the size.  Then I'd like to be able to drag various UI elements into each grid cell.  If it's possible, is there any Telerik training available for this?

 

Dimitar
Telerik team
 answered on 27 Feb 2020
1 answer
549 views

hi

Is there anyway i can disable/lock the saved PDF after using RadFixedDocument to fill up the form field?

I do not want user to edit the field's content after they have filling up a web form and i merged the data to to the predefined PDF form.

Thank you.

Dimitar
Telerik team
 answered on 20 Feb 2020
3 answers
737 views
I am probably asking the impossible here but I need to create a .NET Console Application that will generate a Word Document using a Word Template.  Parts of the Word document will be populated from data stored in SQL Server.  We are currently using Telerik UI for ASP.NET AJAX 2016 R3 version 45. Our preferred language is C#.  If you could point me in the right direction and provide me with some sort of sample code, I would greatly appreciate it.  Any help that you can provide will be greatly appreciated. 
Martin
Telerik team
 answered on 19 Feb 2020
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?