This is a migrated thread and some comments may be shown as answers.

Where is documentation on PDFProcessing

1 Answer 106 Views
PdfProcessing
This is a migrated thread and some comments may be shown as answers.
Ken
Top achievements
Rank 1
Ken asked on 22 Sep 2014, 06:41 PM
I'm trying to evaluate the functionality available with your pdfviewer and this pdfprocessing component.  I can't locate the pdfprocessing class or namespace and I can't find any documentation on it.  Can someone provide an example of how to use the pdfprocessing component to extract images from a pdf file?

1 Answer, 1 is accepted

Sort by
0
Petya
Telerik team
answered on 23 Sep 2014, 12:12 PM
Hello Ken,

Thank you for writing.

RadPdfProcessing is a processing library that allows to create, import and export PDF documents. You can find useful information in our online documentation >> PdfProcessing. Additionally, you can refer to our WinForms Demo application >> Document Processing section where there are available several examples.

In order to access the images in a document you can enumerate the content of each page and try to cast the elements to Image. Each image exposes its source through the ImageSource property.
foreach (var page in document.Pages)
{
    foreach (var element in page.Content)
    {
        Image image = (element as Image);
        if (image != null)
        {
            //process
        }
    }
}

I hope this information helps. Should you have further questions, I would be glad to help.

Regards,
Petya
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
PdfProcessing
Asked by
Ken
Top achievements
Rank 1
Answers by
Petya
Telerik team
Share this question
or