Telerik Forums
Telerik Document Processing Forum
1 answer
773 views

Hi,

I'm trying to add a PNG image into a PDF file, but it doesn't work. I app crash when I reach the following instructions :

PdfFormatProvider provider = new PdfFormatProvider();
File.WriteAllBytes (path, provider.Export (document));

Adding a JPG image works fine. If I don't add the PNG, It works fine too.

I'm working with Telerik UI for Xamarin. How can I add this PNG ? It's a PNG with transparancy, does it matter ?

Thank you !

 

Dimitar
Telerik team
 answered on 10 Aug 2022
1 answer
263 views
Is there a way to determine if text in a cell has the effect of Strikethrough?
Dimitar
Telerik team
 answered on 01 Aug 2022
1 answer
407 views

I have a large PDF file with a combination of paragraphs and tables and would like to export from PDF to Docx in order to format the tables. Then after formatting the tables, would like to export that back to PDF.

I can manage the code logic for the tables but do not see how to export from PDF to Word or Docx. In addition I do not see how to programmatically go through the PDF components using the Telerik Document Processing API.  Could you please help?

Dimitar
Telerik team
 answered on 22 Jul 2022
1 answer
376 views

Hi,

I have used the below code to get letters bold in creating the pdf .

block.TextProperties.TrySetFont(new FontFamily("Calibri Light (Headings)"), FontStyles.Normal, FontWeights.Bold);

But I am not able to see the result in pdf . Provide me if any solution available. 

I have used the FixedContentEditor in creating the pdf.

            RadFixedDocument radFixedDocument = new RadFixedDocument();
            RadFixedPage page = radFixedDocument.Pages.AddPage();
            FixedContentEditor editor = new FixedContentEditor(page);

Thanks in advance

Svilen
Telerik team
 answered on 20 Jul 2022
1 answer
609 views

 

We are using the PDFFormatProvider and RadFlowDocument to convert the HTML string to PDF file.  We need a sample code to add the watermark image to the PDF file. 

Language : C#:

Please find the attached code

ex pdfProvider.Export(document);

 

Thanks

 

Regards,

Babu Durairaji

Dimitar
Telerik team
 answered on 20 Jul 2022
1 answer
298 views

Hello,

We had a situation with the Telerik packages recently bypassing firewalls of the networking in our environment. Actually our firewall blocks all the calls from outside including Telerik packages. The networking team whitelisted the domain nuget.telerik.com but the demanded packages still remained blocked. After an research we found out that Telerik uses a series of IP's (probably dynamic) and also subdomains for the packages. 

For the moment we have solved the problem because all the requested IP's of the Telerik packages are allowed in our firewall, but I was wondering if the IP's are dynamic and in a moment of time they will change we will be again in the starting point where is needed to create specific security policies for the new IP's.

So my question is:

Does Telerik have a range of IP's and domain/subdomains so we can add them from the beginning in our firewall?

I am not sure if there is another solution or Telerik provide documentation for similar situations.

 

Thank you!

Dimitar
Telerik team
 answered on 08 Jul 2022
0 answers
481 views

Hi,

After upgrading Telerik in a project I haven't visisted in the last 6-8 months, my Document Processing references are suddenly broken in the code.

The references in Nuget seems to be doing fine, but in the class where I build my Document Processing I am suddenly getting a ton of errors with for example; Workbook, CellIndex(), CellBorder, IWorkbookFormatProvider, ImageSource(), FloatingImage, RadHorizontalAlignment, ColumnSelection to name a few.

Do you have any experience with these sudden problems after upgrading? I upgraded via Nuget Package Manager.

Maybe I am missing something, but it it very frustrating when it has been working without problems before upgrading.

Kind regards,

Kirstine

Kirstine
Top achievements
Rank 1
 asked on 30 Jun 2022
1 answer
405 views

Hello,

I'm just learning to use Telerik so I hope you can help me. I have a large image of several pages and I need to export it complete to a pdf file. The pdf file must have the number of pages needed so the image is all there and it shouldn't have any added header (neither blank space) at top of evey page.

Right now, I'm able to export an image using RadFixedPage and PDFFormatProvider, but the image is only in one page and it's not complete.

RadFixedDocument document = new RadFixedDocument();
RadFixedPage page = document.Pages.AddPage();

PdfFormatProvider provider = new PdfFormatProvider();
FixedContentEditor editor = new FixedContentEditor(page);

....

using (Stream output = File.OpenWrite("output.pdf"))
{
    provider.Export(document, output);
}

 

Thanks in advance,

Dimitar
Telerik team
 answered on 21 Jun 2022
1 answer
813 views

Dear Team,

We are trying to import a pdf file into RadDocument by using PdfFormatProvider.Import() Method but getting exception "This specified method not found" Sample PDF file is attached and below is the piece of code for importing pdf into RadDocument. We need to set a watermark on pdf file by importing in RadDocument. We shall be very thankful to you for your prompt support. Thanks in advance.

string path = @"test watermark_2022_05_16_01_04_16_969_0_2742.pdf";
byte[] readText = File.ReadAllBytes(path);
Stream stream = new MemoryStream(readText);
Telerik.Windows.Documents.FormatProviders.Pdf.PdfFormatProvider pdfProvider = new Telerik.Windows.Documents.FormatProviders.PdfFormatProvider();
RadDocument rdocument = pdfProvider.Import(stream);--On This line exception "This specified method is not found"
Martin
Telerik team
 answered on 17 Jun 2022
3 answers
404 views

Hi,

I am currently generating a pdf file I need to in generall encrypt. But printing and copying should still be allowed.
Is this possible somehow?

 

Greetings

Benedikt

Martin
Telerik team
 answered on 09 Jun 2022
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?