I'm working on an application for Pixelsense using Microsoft surface 2.0 , I wants to open PDF file in my application in scatterview control , so that i can zoom , rotate & move my PDF file . I have followed the process given http://hugeonion.com/2009/04/06/displaying-a-pdf-file-within-a-wpf-application/
In the link i'm able to open PDF file in scatterview but not able to rotate & zoom it
I would suggest conmverting your PDF file to an image or images, then using those. It may be that ScatterView doesnt have all the support for embeded activeX controls etc and has better support for images.
Processing PDF files can be done with GhostScript (open source) or commercial PDF components.
Related
I am whole new in Autocad using in .NET application. I am working on WPF application that need to import, export and view 2d DXF or DWG file on canvas. I need some general information about how to achieve my goal if possible step by step instruction.
I would suggest you use the Autodesk View & Data webservice to show the model as a WebGL viewer on your application. There are some samples on the link and you need internet connection in order to have this viewer working.
I have a series of Files (word, pdf, ect) that are stored in my application and the idea is to allow the end user to download these files at their choosing. How is this done in silverlight? I tried using a SaveFileDialog but I must not be doing it correctly. Thanks!
I'm using the companion MigraDoc and PdfSharp libraries to generate a report.
The PdfSharp documentation repeatedly refers to WPF and talks about you can "draw on a PDF page as well as in a window", but I can't figure out how to view my PdfDocument in a viewer. All of the examples just kick the rendering off to another program by opening the documents with Process.Start().
Do either of these libraries include WPF controls for viewing the documents? Ideally I'm looking for a basic document viewer control, similar to the built-in RichTextEditor viewer for FlowDocuments.
(I'm using the PdfSharp and MigraDoc libraries that are distributed through NuGet.)
You can use WPF PDF Viewer. It wraps the Adobe PDF Reader COM Component as a WPF control
PDF Viewer is an ActiveX control which needed to be hosted using WindowsFormHost. If you need a WPF renderer for PDR, Adobe didnt introduced it yet. You need to create it yourself and parse the PDF document.
Here are few links which will help you how to host a PDF document on your WPF window :
http://www.codeproject.com/Articles/380019/Using-Adobe-Reader-in-a-WPF-app
http://hugeonion.com/2009/04/06/displaying-a-pdf-file-within-a-wpf-application/
Telerik has a PDF Viewer created using WPF which does the rendering of a PDF document using WPF. Its called RADPDFViewer
http://blogs.telerik.com/blogs/posts/12-02-29/introducing-pdf-viewer-for-silverlight-wpf.aspx
You have to either use one that is shipped by Adobe or you need to create it of your own just like Telerik did.
Is there any library or tool to convert a pdf file to SilverLight xaml file?
This is what my google-fu got me:
http://www.amazedsaint.com/2009/05/pdf-to-xaml-conversion-alternate.html
From that article:
Create a new Silverlight Project in Expression Blend.
As Expression Blend can import adobe illustrator files, simply rename a pdf file's extension from pdf to ai
Clicked File-> Import Adobe Illustrator files in Blend, and imported to my active window.
You'll get the whole form imported as graphical paths, preserving the whole layout
Download and install the free XAML Export plugin for Adobe Illustrator (CS, CS2, CS3, or CS4).
http://www.mikeswanson.com/XAMLExport/
Rename your .PDF to .AI (for older versions of Illustrator).
Open in Adobe Illustrator.
Choose which page (Illustrator can only open one page of your PDF at a time).
Export to XAML (choose Silverlight over WPF, it produces better results)
Rinse and repeat for other pages.
I need to create silverlight application where customer will see some pdf files.
PDF files have to be inside silverlight control and not rendered as images (customer wants to select text)
For this purposes i need some free libriaries or code to convert pdf file to xaml (or just open pdf so i can convert it to xaml).
Which library can read pdf and help me to convert data to xaml?
Can I read somehow pdf file and write custom convertation tool?
I saw iTextSharp. Is this library can read pdf and help me with my issue?
I will be thankfull for any ideas or links.
I make use of the Acrobat Reader plugin to do the displaying for me. It does require a different method depending on whether your application is running inside or outside the browser (I check if the application is running inside the browser and change the means of display accordingly). If running inside the browser, I overlay the application with an IFrame, as I describe in this article: http://www.silverlightshow.net/items/Building-a-Silverlight-Line-Of-Business-Application-Part-6.aspx. Otherwise, I use the WebBrowser control. I have a control which does this all for you in the source code that accompanies my book, which is downloadable from the Apress website here: http://www.apress.com/9781430272076/.
Hope this helps...
Chris