Hi,
Please help me to create layout of pdf document page have a lot of table and have layout same as picture in attachment file.
Many thanks
Good day,
how is it possible to create the pdf thumbnail images in background without blocking the whole application?
I am generating a list of thumbnails of the 1st page of many PDFS, which results in the application UI beeing blocked.
This is what I am doing:
public
ImageSource ConvertPdfToImageThumbnail(
string
filePath)
{
var tf =
new
ThumbnailFactory();
using
Stream stream = File.Open(filePath, FileMode.Open);
var formatProvider =
new
PdfFormatProvider();
RadFixedDocument document = formatProvider.Import(stream);
if
(document.Pages.Count > 0)
{
ImageSource result = tf.CreateThumbnail(document.Pages[0], document.Pages[0].Size);
return
result;
}
return
null
;
}
The function is not doing anything on the UI, just loading a PDF and creating the ImageSource.
When called from a different Thread, the line
"ImageSource result = tf.CreateThumbnail(document.Pages[0], document.Pages[0].Size);"
is throwing this error: "the calling thread must be STA ..."
How can this task be done without blocking the UI?
Thank you for your support!
When creating a password-protected ZIP archive, if I create a new entry and write to it, and during this process create, write and close a second entry, then the first entry appears to be corrupt when you try to read the file.
For example, the following see the following program:
static
void
Main(
string
[] args)
{
// Create the main ZIP file
using
(var zipStream = File.Create(@
"c:\temp\test.zip"
))
{
var encrypt =
new
DefaultEncryptionSettings { Password =
"nick"
};
using
(var zipArchive =
new
ZipArchive(zipStream, ZipArchiveMode.Create,
true
,
null
,
null
,encrypt))
{
// Create the 1st entry.
using
(var entry1 = zipArchive.CreateEntry(
"text1.txt"
))
{
using
(var stream1 = entry1.Open())
{
using
(var writer1 =
new
StreamWriter(stream1))
{
writer1.WriteLine(
"Writer 1 line 1"
);
// While writing the 1st entry, create a second entry
using
(var entry2 = zipArchive.CreateEntry(
"text2.txt"
))
{
using
(var stream2 = entry2.Open())
{
using
(var writer2 =
new
StreamWriter(stream2))
{
writer2.WriteLine(
"Writer 2 line 1"
);
}
}
}
// Continue writing the 1st entry.
writer1.WriteLine(
"Writer 1 line 2"
);
}
}
}
}
}
}
This runs without error. Opening the file using 7-zip, I can read the "text2.txt" entry with no problem with the correct password. However, opening the "text1.txt" file gives an error suggesting the password is wrong.
Program in .NET 4.6, using Telerik.Windows.Zip 2018.3.1010.40.
I have a large project coming up that will be a combination of ASP.net core and .Net core console applications to generate various types of documents for customer consumption. I am trying to take this time now to learn how to use the Telerik document libraries. This page seems to imply that there are specific libraries for .net core https://docs.telerik.com/devtools/document-processing/getting-started/first-steps.
Using nuget, I added Telerik.Documents.Core, Fixed, Flow, Flow.FormatProvideders.PDF to the project.. But when referencing the libraries in the Program.cs using section, it will only autofill Telerik.Documents.Core and Telerik.Zip. Visual Studio 19 does not recognize.Fixed or .Flow libraries.
If I change to the telerick.windows versions of the libraries, VS does add all the libraries without a problem to the application. it compiles but when executing, it throws an error as missing libraries.
What am I missing? Should we only create standard .net console apps & only use the .net core libraries when integrating with asp.net core applications?
Hi!
I am using RadWordsProcessing and load Word`s file.
RadFlowDocument document;
DocxFormatProvider fileFormatProvider =
new
DocxFormatProvider();
string
fileName = Server.MapPath(
"./Data/Document.docx"
);
using
(FileStream input =
new
FileStream(fileName, FileMode.Open))
{
document = fileFormatProvider.Import(input);
}
RadFlowDocumentEditor editor =
new
RadFlowDocumentEditor(document);
Text in the file is written in Times New Roman font.
But when exporting to pdf, the font changes to Segoe UI font.
Why?
I am using version 2019.1.215.
I am importing an excel file to modify some cell values and exporting it.
The issue is that the exported file is displaying the filter icon for the merged cells.
Is this fixed in the latest versions?
Using Telerik UI for Blazor.
Just started experimenting with PDFs, so maybe I just overlooked it.
I can easy draw an image with full opacity, but nowhere in the RadFixedPage or FixedContentEditor settings seems to be anything to set opacity.
Hello,
table cell borders set using
table.Borders =
new
TableBorders(
new
Border(BorderStyle.Single));
are missing when using PdfFormatProvider to export a PDF. However, they are present when exporting to DOCX. Please advise. Thanks.
Hi,
I'm trying to export excel to PDF with letter head on each page of the PDF. how can I achieve it?
Thanks,
Niraja.
I am using version 2019.1.215 and I am unable to import anything to fix the missing ScatterSeries classes.
SeriesGroup scatterSeriesGroup = chart.Chart.SeriesGroups.First() as ScatterSeriesGroup;
ScatterSeries scatterSeries = scatterSeriesGroup.Series.First() as ScatterSeries;
scatterSeries.Marker = new Marker();
scatterSeries.Marker.Symbol = MarkerStyle.Plus;
scatterSeries.Marker.Size = 22;
scatterSeries.Outline.Fill = new SolidFill(Colors.Red);