Telerik Forums
Telerik Document Processing Forum
1 answer
706 views
I'm playing with 2015Q1 and export a simple text document with PDF/A-3b compliance level.

When I check the resulting pdf file, the validation service states:

Validating file "Testpdf.pdf" for conformance level pdfa-3b
  The font Helvetica must be embedded.
  The document does not conform to the requested standard.
The document contains fonts without embedded font programs or encoding information (CMAPs).Done.

How can I specify, that a standard font should be embedded?

Thanks

Mike
Petya
Telerik team
 answered on 03 Mar 2015
1 answer
833 views
Hello,

I proposed to use the RadRichTextEditor to edit simple Docx documents and use the format providers to convert the docx documents to html (for sending as html e-mail).
But now I found that there is also the new WordsProcessing which can do the same conversions.
If I am right WordsProcessing does not (yet?) have an editor for visual editing. (Is that proposed? Or is the RadRichTextEditor the proposed way to go?).
For the conversion from Docx to Html, are there any pros or cons or difference in quality in using the format providers found in the RichTextEditor assembly or the WordsProcessing assemblies?
Or use they in fact the same code base?
Petya
Telerik team
 answered on 25 Feb 2015
1 answer
620 views
Hello,
I have a huge CSV file (about 3.3M lines), that I had to import for filtering and processing part of it.
I've tried to looked at your CsvFormatProvider class to do the work. Unfortunately, the only possibility to work with it is to create a Workbook and the workbook is limited to about 1M lines.

Is there any possibility to have a "low-level" importing of the CSV file?
For example to import one line of data per call. The import returning an array of String.
Or do you have another solution for this problem?

Patrick
Nikolay Demirev
Telerik team
 answered on 17 Feb 2015
5 answers
413 views
I am struggling to get PNG files with transparency to import into a PDF. I have tried several different PNG files with no look. The transparent background section either comes out as black or blurred.

Please see the code I have been experimenting with below.

--------------------------------

Dim FormatProvider As New PdfFormatProvider
FormatProvider.ExportSettings.ImageQuality = ImageQuality.High
Dim Document As New RadFixedDocument
Dim Page As RadFixedPage = Document.Pages.AddPage()
Page.Size = New Size(PageWidth, PageHeight)
Editor = New FixedContentEditor(Page)

'Method 1
Editor.Position.Translate(0, 0)
Dim imageStreamSource As New FileStream("Logo1.png", FileMode.Open, FileAccess.Read, FileShare.Read)
Dim decoder As New PngBitmapDecoder(imageStreamSource, BitmapCreateOptions.PreservePixelFormat, BitmapCacheOption.Default)
Dim bitmapSource As BitmapSource = decoder.Frames(0)
Editor.DrawImage(bitmapSource.ToImageSource)

'Method 2
Editor.Position.Translate(0, 200)
Using source As FileStream = File.Open("Logo2.png", FileMode.Open)
    Dim imageSource As New Resources.ImageSource(source)
    Editor.DrawImage(imageSource)
End Using

'Method 3
Editor.Position.Translate(0, 400)
Dim bitmap As New BitmapImage()
bitmap.BeginInit()
bitmap.UriSource = New Uri("Logo3.png")
bitmap.EndInit()
Editor.DrawImage(bitmap.ToImageSource)

Dim filename As String = "test.pdf"
Using DocStream As New FileStream(filename, FileMode.Create)
    FormatProvider.Export(Document, DocStream)
End Using

-----------------------------------

Any advice would be very much appreciated. I am finding the RadPDFProcessing tool extremely useful in a dynamic product brochure project i am working on but i need to be able to use transparent images. If its not possible to use a PNG file is the another file format i could import to the PDF that allows for transparency?




Kammen
Telerik team
 answered on 05 Feb 2015
5 answers
171 views
I need to take the RadScheduler printout for multiple schedules and create a single PDF document with a page for each schedule. I can create the loop to load the appointments for each schedule, and setup the RadPrintDocument. How can I get it from there into a PDF document,in code (vb.net).
Thanks
Art
Stefan
Telerik team
 answered on 30 Jan 2015
6 answers
350 views
The code I'm trying to get away from looks through a name collection to find a specific NamedRange in a workbook.  Then, I populate the NamedRange with a value.  This is a great feature because the creator can put a named range anywhere and move it around at any point.  My code doesn't care where it is... it just populates the value.  Can you tell me what options I have with SpreadProcessing?  If an Excel Workbook has a named range can I get at it with SpreadProcessing?

Excel Code:
/// <summary>
/// Get a Named Range from the given workbook.
/// </summary>
/// <param name="workbook"></param>
/// <param name="rangeName"></param>
/// <returns></returns>
public Range GetNamedRange(
    Workbook workbook,
    string rangeName)
{
    ExceptionHelper.TestNull(workbook, "workbook parameter");
    ExceptionHelper.TestStringValue(rangeName, "rangeName parameter");
 
    Range result = null;
 
    Names names = workbook.Names;
    foreach (Name name in names)
    {
        string[] nme = name.NameLocal.Split("!".ToCharArray());
 
        if (nme[nme.Length-1] == rangeName)
        {
            result = name.RefersToRange;
            break;
        }
    }
 
    return result;
}
Joel Palmer
Top achievements
Rank 2
 answered on 16 Jan 2015
1 answer
102 views
I need to populate a cell that I find using a Name.  I see that Name.RefersTo points to the range.  It gives me a string that looks like "=Data!$C$2".  I assume that somewhere I can get the cell from this string.  However, I haven't come across it anywhere in your documentation. 

Thanks for your help,
Joel
Anna
Telerik team
 answered on 16 Jan 2015
1 answer
205 views
Hello,
I have been playing around with the Mail Merge capabilities added to WordsProcessing as part of UI for WPF Q3 2014. One issue I've found is that our current Mail Merge solution allows us to specify child tables in the merge, I have been unable to figure out a way to do this in Telerik. For example we can provide a list of customers to the merge mail where each customer has a list of items they have ordered, the mail merge allows us to create a table with the list of items for each customer. I know that this is not standard mail merge functionality but are there any plans to implement this type of merging capability in the Telerik Mail Merge? Our current Mail Merge solution causes some formatting problems which don't appear to exist using your solution so I would like to be able to recommend that we transition to a full Telerik solution as we are already rendering the results in the RadRichTextEditor but without a sub-table solution I don't think this will be possible. Thanks for your time!
Mihail
Telerik team
 answered on 15 Jan 2015
1 answer
1.1K+ views
I can not change fonts of some parts of the documents.
editor.InsertLine(" message")
Some pars of lines tahoma some parts of lines are Times New Roman

Thanks..
Deyan
Telerik team
 answered on 24 Dec 2014
1 answer
296 views
Hi,

Can i get some example of the usage of the IBlockElement Split() function.

Regards,
Sandeep
Deyan
Telerik team
 answered on 02 Dec 2014
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
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
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?