Telerik Forums
Telerik Document Processing Forum
5 answers
1.3K+ views

I've a .NET core web-api project and I need to edit the existing pdf (like adding an image/ text) without using UI. The pdf files are stored in Azure Cloud which I can access through URI.

So, is that doable? Would appreciate if you could point me to the right Telerik libraries and any examples would be great.

 

Dimitar
Telerik team
 answered on 12 May 2021
1 answer
786 views

I'm using Telerik UI for Blazor and have to create some PDFs (via RadFixedDocument and PdfFormatProvider). This works fine so far.

But I also have to display a preview of the Document on my blazor-generated website (server side, not WebAssembly). It doesn't matter if this is a preview of the FixedDocument or of the generated PDF.

Does a control for "Telerik UI for Blazor" exist which can display the RadFixedDocument or the PDF? Or is there a possibility to export the RadFixedDocument or the PDF to an image and I can display this image? Or is there another way for making the created Document visible for preview?

TIA

Rudi

Marin Bratanov
Telerik team
 answered on 11 May 2021
2 answers
240 views

Hi

 

I would like to insert a jpg at specified or predefined (field) location in the PDF, is it possible?

My code based is .Net Core c#, thank you.

Dimitar
Telerik team
 answered on 11 May 2021
1 answer
1.0K+ views

Hi,

 

Is there a way to overwrite existing files when unpacking from a zip with ZipFile.ExtractToDirectory()?

 

Thanks,

Marc

Tanya
Telerik team
 answered on 07 May 2021
1 answer
1.3K+ views

Hello

Is it posible to check if pdf file is password protected using Telerik Tools?

 

All the best

Tanya
Telerik team
 answered on 22 Apr 2021
1 answer
146 views

Hello! We are having an issue while using DocxFormatProvider to convert docx to RadFlowDocument. When the provider converts, it replaces all charts in the document with blank paragraphs, and we can't catch this case. (doc for example sample doc)

public void Sample(byte[] document) {
    var docxProvider = new DocxFormatProvider();
    var radFlowDocument = docxProvider.Import(document);
}
Dimitar
Telerik team
 answered on 21 Apr 2021
5 answers
783 views

Not sure that this actually qualifies as a bug, but it was unexpected behavior.  For unit testing I was creating an empty Workbook document and writing it to a file.  It turns out, that the file is corrupt unless it has a Worksheet added to it.  The XlsxFormatProvider does not issue any error and happily writes a 3k file, but Excel can't read it.  Excel throws a dialog "We found a problem with some content in the 'test.xlsx'.  Do you want us...".  Selecting Yes eventually comes back with a "The workbook cannot be opened or repaired by Microsoft Excel because it is corrupt." message.

Simply adding a worksheet:

workbook.Worksheets.Add()

will allow it to create a file that Excel will handle.  Again, not sure you could call this a bug, but it wasn't what I expected it to do.  It might be better if the XlsxFormatProvider threw an exception for trying to write out an empty file.  

At any rate, figured I throw this out there in case anyone else runs into this behavior.

David
Top achievements
Rank 2
 answered on 13 Apr 2021
1 answer
118 views

I am making a catalog of pictures.   During the process the user can either select on file or multiple files sorted by category.  

 

Why would the pdf files be so much larger than the Word files?  It’s usually the other way around!  

 

I combined the individual pdf files and it became 45MB.  I combined the word files and it was 37MB.  I then turned the 37MB word doc into a pdf and it became 4MB.  So as output from Smartview(my program) the pdf file is 45MB but generating a pdf from the word files it is 10x smaller!!!!  

Tanya
Telerik team
 answered on 13 Apr 2021
5 answers
487 views

I have a form in a blazor web app that I need to export the content from to a pdf.

The form fields are rich textboxes that can have varying degrees of content, from single lines to who knows how many.

If I export this first to html, and then feed that html into your pdfprocesser, will it be able to automatically create as many pages as it needs or do I need to do calculations to see what will fit on a page and I create the new pages myself?

Dimitar
Telerik team
 answered on 05 Apr 2021
11 answers
570 views

Hello, I have a project adopted from the code in the ManipulatePages example project from Telerik, the FitAndPositionMultiplePagesOnSinglePage routine to be precise.

Except instead of taking four pages and putting them on one, I'm taking two 5.5x8.5 pages and putting them on a new 11x8x5 page, left to right.

It's working great, when the input PDF is properly formatted.

I have a handful of PDFs that were created in some unknown way that appear to be malformed.  When they are fed through my project, the odd pages never make it to the right side of the output.  It looks like, among other things, the CropBox size isn't the same as the MediaBox size on the source doc, which I suspect is a source (maybe not THE source) of the problem.

It seems I should be able to read the content of the pages on the source doc and insert them into a new page on the output doc, instead of just copying the page from PdfFileSource.Pages[] to essentially rebuild the page, instead of copying the page?

However, I'm at a loss as to how to read the source page, as PdfFileSource.Pages don't seem to expose the content?

Help is appreciated! :)

Thanks,

Charles

Dimitar
Telerik team
 answered on 31 Mar 2021
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?