How to create PDF on Silverlight 4 - silverlight

I need to create & display a PDF document in Silverlight 4.
PDF document will be generated dynamically.
The PDF document will contain plain text & some images.
Is there any API I can use to achieve my requirement ?

You can use this: http://silverlightpdf.codeplex.com/

Yes! We create PDF Document. In silverlight By using PDFSharp.dll.
It's Opensource dll file.
You can download the dll file below Link
http://www.pdfsharp.net/Downloads.ashx
Please click below link for reference puprpose.
http://www.pdfsharp.net/wiki/Booklet-sample.ashx
as so many examples as given its easy to understand.

Related

Adding custom font to FreeText in PDFTron

Hi I'm using PDFTron for a Windows 10 app in C# I'm working on. We have Highlight Path and Text annotation.
I embed the text annotation to the PDF using a FreeText object. But I don't find any easy way to embed a custom font in to that particular annotation.
Regards.
This forum post shows how to set the font using one of the 14 builtin PDF fonts.
Note that actually embedding a custom font is not ideal, as that causes issues if someone wants to later on update the contents of the annotation, and the required characters are not embedded. It is best to stick with one of the built in fonts.

How to annotate a PDF document in WPF

First I need to show a PDF File in an WPF application . It appears the only two ways are using a web control or some sort of WinForms/Com based solution using the Acrobat reader component.
Assuming I get it to show up in a UI my problem is I want to add annotations to the PDF itself. Is this even possible.

How Can I Read An HTML Document And Extract Image Names?

I'm developing an application in WPF, C# and VS2010 and am not sure how to proceed with this...
I am interested in an algorithm to obtain all the .jpg and .bmp images that are referenced within an html file. How can I extract the body from within an html file?
Thanks
The HTML Agility Pack is a pretty solid library for extracting elements from an HTML document. A simple view is to see it as a wrapper over XPATH with a nice API.
You can do it with regular expressions.
http://msdn.microsoft.com/en-us/library/ms228595.aspx
The following pattern should work:
(http?:\/\/.*\.(?:png|jpg|gif))

Show pdf inside silverlight application. PDF to XAML

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

Convert WPF to PDF

I have a WPF application and I want to be able to save the output of the application to a PDF document, the item I want to save can be a Visual a Drawing or a FixedDocument (I can create it as any of those options, and it's easy to convert between them).
Is there any library that can convert directly from WPF to PDF (without writing code to walk the visual tree and recreate it using PDF primitives).
If you got your WPF visual tree rendered in to XPS then try this XPS to PDF converter NIXPS.
For this sceneario I recommend using XpsDocumentWriter class to get a XPS document, then converting it to PDF using Amyuni PDF Creator
Disclaimer: I work for Amyuni Technologies
We have just released a new library that facilitates this: NiPDF v1.0
Here is a link to an example on our site that converts WPF to PDF.
It is a 100% managed .NET assembly, and you don't need to learn an arcane API top be able to use it.

Resources