Hello! I'm doing a conversion and ran into a problem. Export to pdf removes blank lines. I need them to stay.
Please help. Thanks in advance
this is my code
var htmlProvider = new DocxFormatProvider();
var document = htmlProvider.Import(data);
var pdfProvider = new PdfFormatProvider();
pdfProvider.ExportSettings.ShouldEmbedFonts = false;
return pdfProvider.Export(document);
link to files
Hi,
I am using the SpreadsheetProcessing library to import Excel files for reading data. I am sure there are other libs to use as well but as a long-time Telerik customer this was a very easy and neat way for me to import xlsx files without the need for any interops. Worked like a charm until i got a source file that contains Threaded Comments (Office365) which throws an exception on import.
I see that working with Threaded Comments are currently in development for 2022 R2 but is there a way to "ignore" them so not to throw an exception in import. I am not interested in the comments.
Thanks
Hi,
I want to set a particular cell to be 20% wide. I am using .NET MVC libraries.
My code reads as follows
using CellWidth = Telerik.Windows.Documents.Flow.Model.Styles; . . . detailsLine = table.Rows.AddTableRow(); detailsCell = detailsLine.Cells.AddTableCell(); detailsCell.PreferredWidth = new CellWidth.TableWidthUnit(CellWidth.TableWidthUnitType.Percent, 20.0);
I have an error:
CS0029: Cannot implicitly convert type 'Telerik.Windows.Documnets.Flow.Model.Styles.TableWidthUnit' to 'double?'
What can I do.
Hi Telerik team,
I try to add an image to my document using the following lines:
var imageInline = result.Runs.First().Paragraph.Inlines.AddImageInline();
imageInline.Image.LockAspectRatio = true;
After exporting the document to word the setting doesn't have any effect. The checkbox in word for locking the aspect ratio isn't checked.
Is there something I am missing?
Hi,
Im looking for the solution for Extraction of XML data from .txt file and convert into pdf file in ASP.net core
Thanks in advance
Are there any plans of making async functions in RadSpreadStreamProcessing?
When used in a server environment, that would increase throughput of requests a lot...
Hi,
In one of my projects, I add a kind of 'stamp' to an existing pdf page by rendering an HTML page on top of the page. I do this with a third-party library other than Telerik.
To reduce the number of different licenses needed I try to accomplish this with the Telerik DPL but I can't figure out if this is possible, and if yes, then how?
Can I add a document page (ie imported from a htmlpage) on top of a page in an existing pdf (the original page should still be visible)
If it is possible then a small sample will be really helpful.
Thanks in advance!
Kees Alderliesten
I need pdf landscape orientation.
I export document, then change size:
pdf = pdfFlowProvider.ExportToFixedDocument(doc); pdf.Pages[0].Size = new Size(1056, 816);
Problem that I have lot of space on the right side, probably because I exported document first.
But I can't change page size before this, because I don't have pages.
How to fix this?
I can rotate in RadFixedDocumentEditor using SectionProperties.PageRotation, but if I use
using (RadFixedDocumentEditor editorDocument = new(document)) { editorDocument.SectionProperties.PageRotation = Rotation.Rotate90; editorDocument.InsertRun("Test Run."); }