Telerik Forums
Telerik Document Processing Forum
5 answers
260 views
I search for a component for sending mails:
- It should be used in a non-UI application.
- The input provided to the mail merge component is a template retrieved dynamically from a data source as string.
- The template contains HTML code and arbitrary placeholders, which should be replaced by values provided e. g. from e.g. a dictionary. The templates are not created yet. Hence, the syntax for the templating language may be dictated by the component. It would be good if the templating language supported advanced concepts like control flow statements or at least alternatives.
- The email should be sent via SMTP as HTML mail.
- Email attachments are needed.
- Email address validation would be nice.

Do you offer sth. like this?
Tanya
Telerik team
 answered on 11 Mar 2019
1 answer
147 views

Hi,

Working on a web application, i've built a mail merge program on server side. This last one reads a word document as a model and performs a merge by using Telerik librairies.

 

In this case, the models are very user dependant (basically every agency has its own format for each type of document), so I need to provide a graphical tool to format the models, add and remove merge fields. Is there any telerik component capable of doing so ? Or, is there any other suggested solution  ?

 

Best resgards

 

Nikolay Demirev
Telerik team
 answered on 11 Mar 2019
1 answer
306 views

I'm using Rad Fixed Content Editor to export pdf but i cant find a way to set a static header through my main table.

I mean i have a document with a table and other contents. I want to set a static header for this table only

Please help me

Georgi
Telerik team
 answered on 06 Mar 2019
1 answer
813 views

Hi, 

I m trying to make footer right justify but unable to find any reference for this scenario. Here is my code

Telerik.Windows.Documents.Flow.FormatProviders.Pdf.PdfFormatProvider formatProvider = new Telerik.Windows.Documents.Flow.FormatProviders.Pdf.PdfFormatProvider();
    int numberOfPages = formatProvider.ExportToFixedDocument(doc).Pages.Count;
    RadFlowDocumentEditor editor = new RadFlowDocumentEditor(doc);
    editor.MoveToParagraphStart(doc.Sections(0).Footers.Add().Blocks.AddParagraph());
    editor.InsertText("Page  ");
    editor.InsertField("PAGE", "Page number will be evaluated on each page footer.");
    editor.InsertText(" of ");
    editor.InsertField("NUMPAGES", numberOfPages.ToString());

Any help would be greatly appreciated.

Tanya
Telerik team
 answered on 26 Feb 2019
4 answers
652 views

I use folowing function to Import Byte array into RadFixedDocument

private RadFixedDocument GetFixedDocument(byte[] Content)
{
    using (var contentStream = new MemoryStream(Content))
    {
        PdfFormatProvider formatProvider = new PdfFormatProvider(contentStream,
                                                                 FormatProviderSettings.ReadAllAtOnce);
        return formatProvider.Import();
    }
}
 

I become Nullreference Exception for Parameter Pages in Method import with following Stacktrace:

  bei Telerik.Windows.Documents.Fixed.FormatProviders.Old.Pdf.PdfReader.PdfContentManager.GetPages()
   bei Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.PdfFormatProvider.GetPages(RadFixedDocumentInternal doc)
   bei Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.PdfFormatProvider.LoadPages()
   bei Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.PdfFormatProvider.Import()

Tanya
Telerik team
 answered on 18 Feb 2019
1 answer
341 views
When I'm exporting a file that has dates, the format is coming across as general instead date.  When I inspect the column data deserialized from the model object it is indeed showing a date format, it just doesn't seem to be applied when the workbook is created.  Any suggestions?
Nikolay Demirev
Telerik team
 answered on 18 Feb 2019
4 answers
431 views
is it possible (and if so how to) create pdf from doc file and to crate pdf from tif/tiff file with multiple pages?
Georgi
Telerik team
 answered on 30 Jan 2019
11 answers
1.1K+ views

Hi,

I have a fairly complex docx file, in which I want to replace some text using the ReplaceText method, and managed to do so, until today, when I tried to insert a newline into my "new text". To be more specific

Old text: "lorem ipsum VAR_TEXT".

Using: editor.ReplaceText("VAR_TEXT", "dolor"), it works, and the output is "lorem ipsum dolor", as expected.

 

Now I want to do this: editor.ReplaceText("VAR_TEXT", "dolor \n\r sit amet"), and achieve:

lorem ipsum dolor

sit amet

but what I always get is lorem ipsum dolor sit amet

I also tried with: Environment.NewLine, \n, \n\r, \r\n, <br>, <br />, <w:br /> ...all failed.

 

Can you please help me out? Thank you!

Tanya
Telerik team
 answered on 29 Jan 2019
5 answers
2.0K+ views

Hello we have been getting large PDF files in the 80 MBs range and need to compress these.  Some clients are scanning in too high resolution and in color.  I have tried several Telerik code examples for importing and exporting, but have had no successful attempts at reducing the file size. Most made the same PDF size, but some examples resulted in larger PDF sizes.  There was a grayscale example in the a thread, but that increased the file size by about 50% regardless of the PDF.  Is there an example on importing, running a compression scheme, and then exporting that results in smaller PDFs? 

Thank you.

 

Boby
Telerik team
 answered on 28 Jan 2019
1 answer
578 views

Can someone tell me how can i export a docx document into pdf with password?

 

I tried the following but i get a corrupted pdf file:

 

RadFixedDocument documentFromPDFtmp = new RadFixedDocument();
                        Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.PdfFormatProvider providerFromPDFtmp = new Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.PdfFormatProvider();
                        var fileFormatProvider = new DocxFormatProvider();
                        RadFlowDocument documentFromWord = fileFormatProvider.Import(sourceFile.InputStream); ;
                        IFormatProvider<RadFlowDocument> formatProvider = new Telerik.Windows.Documents.Flow.FormatProviders.Pdf.PdfFormatProvider();                              
                        using (MemoryStream ms = new MemoryStream())
                        {                            
                            formatProvider.Export(documentFromWord, ms);                            
                            using (Stream stream = ms)
                            {
                                documentFromPDF = providerFromPDFtmp.Import(stream);
                            }
                            using (Stream output = new FileStream(path, FileMode.OpenOrCreate))
                            {
                                providerFromPDFtmp.ExportSettings.IsEncrypted = true;
                                providerFromPDFtmp.ExportSettings.UserPassword = Utils.GetConfigValue("PassPhrase");
                                providerFromPDFtmp.ExportSettings.ImageQuality = ImageQuality.Medium;
                                providerFromPDFtmp.Export(documentFromPDFtmp, output);
                            }
                        }

 

Looking forward for help with that

Thanks,

Hagai.

 

Georgi
Telerik team
 answered on 28 Jan 2019
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?