how can i add Acroforms (or any inputfields) with pdfsharp lib to a pdf?
For example a textbox (PdfSharp::Pdf::AcroForms::PdfTextField)
I can't find any example for this, only read/modify.
I found "page->Elements->Add(key,pdfitem)", but i cant create a Object from PdfSharp::Pdf::AcroForms::PdfTextField or the others Forms (no Constructor)
Don't know if it is still relevant (maybe it will be relevant for other users), but it is not possible to do that with PDF Sharp, unfortunately, as if it would have had that functionality as well, it would have been a really nice rounded library. The AcroFrom functionality of the library only allows targeting already existing one.
Depending on what is your project for you can use iText sharp, but it has an AGPL license which is not ideal, there are other libraries but they are quite expensive. If it is a small pdf file (under 10 pages) you can use the free tier from the SpirePDF library.
In addition, there is PDFClown library which is open source (as long as you mention that you use it somewhere), but similarly to PDFSharp, it is quite old, and even less documented than PDFSharp.
Sadly, there aren't many solutions to this issue.
Related
According to their website (http://www.gdpicture.com/products/managed-pdf/) you have the ability to extract fonts from a PDF file. However, I can't seem to find the functionality to do this. I have encountered several methods to add them, but none to extract them (and they don't show as embedded files). Has anyone tried to do this, or have experience with GdPicture?
Version: 14 (Current)
Disclosure: I am part of the ORPALIS technical staff that edits the GdPicture.NET SDK, that's why I know there's an ongoing communication about this already.
It is my understanding that you have a support case open for a merging issue relative to fonts and as you know, our development team is currently working on a fix that will solve it so I strongly recommend that you wait for them to finish.
There's no extraction of the embedded font as you might expect at the moment but the development team is also working on one, we will let you know as soon as it is available (it should be very soon).
You can get information about (already) embedded fonts using the GetFontCount, IsFontEmbedded, GetFontName and GetFontType methods.
You can also add new embedded fonts (of different types) using the AddFontFromFileU, AddStandardFont, AddTrueTypeFont, AddTrueTypeFontFromFile, AddTrueTypeFontFromFileU and AddTrueTypeFontU methods.
I have a question about generating PDFs with wkhtmltopdf. I know it's possible to use custom fonts in my html. But I think it's required that the operating system viewing the pdf has installed these fonts. Correct?
My question is whether it's possible to include these fonts in the PDF? So when the PDF is generated I can send it to a print office to print 50 copies. And they see the pdf exactly the same as I, without having these fonts installed.
This is certainly possible.
It's called "embedding a font" in pdf lingo.
Most pdf generation libraries should support this.
Pdf comes in different flavors (standards). One of the standards pdf/A is meant for long term storage (the A stands for archiving). The idea being that the document look and feel should be preserved as much as possible. In order to achieve this without depending on the operating system (and the fonts it may be shipped with), it is required that the fonts are embedded to fulfill the pdf/A standard.
https://en.wikipedia.org/wiki/PDF/A
I don't know how to do this in the library you are using. But I do know it's possible with iText.
This is a great tutorial on it, which aside from giving you more information about iText, will also illustrate the problem with custom fonts in a very visual way.
https://developers.itextpdf.com/tutorial/using-fonts-pdf-and-itext
I need to read and edit existing pdf in win 8 app.
Editing pdf include adding text and images at any position on pdf.
Shall i go for xaml or javascript based coding.
which link should i follow that will give info for editing pdf.
Maybe this can help you : ....
http://social.msdn.microsoft.com/forums/en-US/wpf/thread/d115b1a4-bbcd-415d-81c4-fc167bf918f6/
PDF is a beast of a file format. If you don't have lots of software development experience (which your question suggests you do not), writing a PDF editor from the ground up (especially if you have no team) can be a daunting task, even only considering the non-UI aspects of it.
Even should you implement a library that's 100% conforming to standards, you'll have to deal with all the faulty PDFs out there. Which very few readers, including the Win8 PDF reader, accomplish.
In case you're looking for a library, you should have a look at http://www.dynaforms.com/ - it can cope with most PDFs and has some editing functions and a renderer (in the professional version) as well and there's a Windows 8 compatible version of it.
If you want ready framework, you can look at Foxit Software solutions. They already have framework for Win8, but it can be expensive.
I've been looking for ways by which I can generate Thumbnails from pdf, as shown in the explorer. But the problem is that without Adobe Pro, the free version does not expose all ihe COM interfaces. Is there any other way? please help.
Ghostscript (which is what ImageMagick uses) will generate images in a wide variety of different image formats... if you need something really obscure then use the imagemagick wrapper, otherwise, I prefer the straight dope.
If you can afford a commercial option, you could use Amyuni PDF Creator ActiveX for this task, (or .Net version if that suits your needs better). Using this product you can create jpg/png/bmp images from the first page of your PDF files with the specified resolution, and then use them as thumbnails.
Disclaimer: I am part of the development team of this product.
Here are other SO questions proposing other approaches (not involving COM):
Using ImageMagic in command line
Thumbnail of a PDF page (Java)
I've been asked to investigate the feasibility of adding watermarks to documents when printed through our application. The documents will consist of word, pdf and cad.
The interface of the application is vb6 with a plethora of vc6 dll's.
I can see a couple of possible solutions:
Convert all documents to PDF, add a watermark and then print.
Find a print driver that will add a watermark to all documents prior to printing and install it and reenable it at runtime if it gets disabled for any reason.
3rd Party suites are possibility (we use Volo View Express for viewing CAD files) but since this application is nearing end-of-life we wouldn't want to spend too much on it.
Has anyone had any experience of the above? Any gotcha's that will bog me down?
Tracker Software has a good set of PDF api's that that will allow you to implement the solution you already have in mind. I've used their Image and PDF libraries quite a bit with a lot of success in both VB6 and .NET. Single user licenses are not expensive (depending on how you look at it I guess), and I've found support to be excellent as well.