Telerik Forums
Telerik Document Processing Forum
2 answers
482 views

Hello everybody

 I have a problem with pdf file loading into PdfDocumentSource.

In the OnException handler I have next information:
Value cannot be null.
Parameter name: Pages

   at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.PdfFormatProvider.Import()
   at Telerik.Windows.Documents.Fixed.PdfDocumentSource.CreateDocumentFromStreamOverride(Stream stream, FormatProviderSettings settings)
   at Telerik.Windows.Documents.Fixed.FixedDocumentStreamSource.CreateDocumentFromStream(Stream stream, FormatProviderSettings settings)

This file is a scan of a document and has one page. I can open it in PDF readers.
Unfortunately ​I can't attach the file because it's confidential (and I don't have such problem with any other file).

Here is it's header and ending:
header:
%PDF-1.3
1 0 obj
<</Type /XObject /Subtype /Image /Name /Im1 /Width 1654 /Height 2338 /Length 315069/ColorSpace /DeviceRGB /BitsPerComponent 8 /Filter [ /DCTDecode ] >> stream

-------------------------------------------------------------------------------------------------------------------------
ending:

endobj
2 0 obj
<< /Length 47 
>>
stream
q 595.44 0 0 841.68 0.00 0.00 cm 1 g /Im1 Do Q
endstream
endobj
3 0 obj
<<
/Type /Page
/MediaBox [0 0 596 842]
/Parent 4 0 R 
/Rotate 0 /Resources <<
/ProcSet [/PDF /ImageC /ImageB /ImageI]
/XObject <<
/Im1 1 0 R
 >>
 >>
/Contents [ 2 0 R
]
>>
endobj
4 0 obj
<<
/Type /Pages
/Kids [ 3 0 R]
/Count 1
>>
endobj
5 0 obj
<<
/Type /Catalog
/Pages 4 0 R  
>>
endobj
6 0 obj
<< /Creator ()
/CreationDate ()
/Author ()
/Producer ()
/Title ()
/Subject ()
>>
endobj
xref
1 7
0000000000 65535 f 
0000000009 00000 n 
0000315262 00000 n 
0000315359 00000 n 
0000315546 00000 n 
0000315604 00000 n 
0000315655 00000 n 
trailer
<<
/Size 7
/Root 5 0 R
/Info 6 0 R
>>
startxref
315751
%%EOF

 

Is there any possibility to load this document source?

 

Thanks,

Dzmitry

Dzmitry
Top achievements
Rank 1
 answered on 06 Nov 2015
1 answer
108 views

Hello, is it possible to add a chart/graph to generated xlsx ?

 

Thank you

Tanya
Telerik team
 answered on 05 Nov 2015
1 answer
275 views

Hi,

Is there a way to set the document's format to landscape ?

I know we can perform this with the RadPdfProcessing but I also need a header and a footer.

 

Actually here is my scenario:

I need to generate a landscape format document including header, footer and dynamically populated grids with business datas, so should I use RadFixedDoucment or RadFlowDocument ?

 

Thanks,

Rémi.

Tanya
Telerik team
 answered on 28 Oct 2015
1 answer
159 views

Hi,

 

 Is it possible to display fleshly created RadFixedDocument in PdfViewer or do I have to save the RadFixedDocument as a file and then bind this file to the PdfViewer ?

I mean doing something like this : 

 

Model:

<telerik:RadPdfViewer Name="pdfViewer" Document="{Binding NewDocument}"  />​

'ViewModel:
NewDocument = CreateDocument()

 

Thanks,

Rémi.

Rémi
Top achievements
Rank 1
 answered on 23 Oct 2015
10 answers
157 views

Hi,

 I have updated our company software to the 2015 Q2 release. According the release history this should include the following for the PDFProcessing.

  • Introduced API for merging PDF documents.
  • Implemented loading ImageSource on demand when importing PDF documents.
  • Introduced API for accessing image data.
  • Implemented support for import and export of TrueType fonts.
  • Implemented support for import and export of text showing content stream operators.
  • Implemented support for import and export of text positioning content stream operators.
  • Optimized performance when Image objects are imported and exported by not decoding and encoding the image data.
  • Provided API for inserting and retrieving images as encoded image data.

Has all the documentation been updated yet as it looks the same as when I last looked. I am disappointed that I am still suffering from the following issues, which I thought would be covered by the above fixes.

  1. Cannot import png files correctly (transparency issues)
  2. Cannot import pdf file to include in generated document (shows as blank page)
  3. Image compression on imported images cannot be turned off (ImageQuality.High causes to much of a loss of quality for printed documents)

Is it still the case that the above problems are still unfixable for now?

Regards,

 

Shaun

 

Deyan
Telerik team
 answered on 23 Oct 2015
4 answers
217 views

I'm presently exporting a Chart and a Grid to a PDF, which works fine in Chrome and Firefox.

In IE11 however, I get:
"SCRIPT5007: Array.prototype.slice: 'this' is null or undefined

File: kendo.all.min.js, Line: 17, Column: 7305 "

It says there is compatibility for this in IE versions 10 and up (I believe).

I've tried it with the proxyUrl, and it still fails in IE.

BUT, this app is running 100% locally and will not have an internet connection anyway, so even if the proxyUrl worked, it wouldn't be a viable solution.

Paul
Top achievements
Rank 1
 answered on 22 Oct 2015
4 answers
154 views

Hi

I have been testing the PDFProcessing library, and have one question I hope you could answer.

In my application I need to create a PDF documentation, with content like texts, tables, images etc. 

Is there any way I can add a UIElement just like adding a text or image to a RadFixedPage?

I have previously been using the FlowDocument where you can add UIElements... 

 

Kind regards

Jesper

UDV
Top achievements
Rank 2
 answered on 15 Oct 2015
2 answers
1.2K+ views

I've used the example show in de docs to import a csv file into a worksheet:

http://docs.telerik.com/devtools/aspnet-ajax/controls/spreadprocessing/formats-and-conversion/csv/csvformatprovider

After importing the file, the worksheet is filled with the proper data. However, the Columns.Count and Rows.Count properties are set on the maximum they can be, not the number of imported rows and columns. 

What is the fast way to find out which rows and columns are empty? I want to stop processing the document as soon as I've reached the first empty row.

 

Mark
Top achievements
Rank 1
 answered on 14 Oct 2015
1 answer
184 views

So I'm following the sample on this page:

http://demos.telerik.com/aspnet-ajax/wordsprocessing/generate-documents/defaultcs.aspx

I've been able to create my document object, editor object and added lines, etc. to the file and it produces a docx without issue.  What I'm trying to figure out is how to set the pageorientation to landscape.  I've been looking and haven't found any way to accomplish this.  I saw a sections pageorientation in the docs but I don't see how to access it.

Thanks,

Richard

 

Tanya
Telerik team
 answered on 14 Oct 2015
5 answers
130 views

I am currently creating a pdf document using your PdfFormatProvider.

Inserting text does not include any "-"  (dash) characters.

Dim partNumberBlock = partNumberCell.Blocks.AddBlock()
SetTextProperties(partNumberBlock, RgbColors.Black, 18, FontsRepository.Helvetica)
partNumberBlock.InsertText(sws.Z_No.ToString())
partNumberBlock.InsertLineBreak()

I am using your ​FontRepository and have tried various of the standard fonts.

Is the problem similar to the previous post about german characters and the dash is just not part of the font.

Any help would be appreciated

David Charles Ocasio

 

 

 

 

Deyan
Telerik team
 answered on 07 Oct 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?