I have a problem I'm not sure can be solved, I wondered if I could ask for help on here.
I am creating an invoice in PDFsharp in C#, I have written the first page displaying strings taken from datagrids along the way. That's all fine.
However I'm coming to the summary page and I need to output the values looping through the datagridview into the PDF. Is that possible within PDFsharp or do I have to go to MigraDoc to do this?
If so, is MigraDoc still supported?
As I cannot get the references into my solution.
Any help would be appreciated.
Thanks.
MigraDoc is still supported.
MigraDoc uses PDFsharp to create PDF files, so everything that can be done with MigraDoc can also be done with PDFsharp only.
MigraDoc supports tables with borders and handles pagebreaks automatically - so for invoices it is most likely a good idea to use MigraDoc and not PDFsharp.
See also:
http://www.pdfsharp.net/wiki/Invoice-sample.ashx
With respect to adding the references, detailed error messages would be helpful.
The source code package of MigraDoc includes samples with Visual Studio solutions and all references.
Related
I am trying to parse a PDF file that has two columns of text on most pages and no images. I tried using the iTextSharp solution that can be found at how can i get text formatting with iTextSharp . It seemed to be working for me, but then I noticed some rather serious issues with the text being returned out of order in some places on my PDF. I am simply looking for it to parse the text in the same order that it exists on each page (no special order), but this is not happening. I was wondering if there is a version of the TextWithFontExtractionStrategy solution available in iText 7 that would not exhibit this problem (or even a version of iTextSharp that works correctly for that matter). I would appreciate any assistance.
I am new to Docx, and it is really very handy, Thanks DOCX for this development. I have tried using DOCX with photos captured through mobile phone. The photos are portrait and some are landscape.
I do have a word template that I am loading when i run my app. while inserting photos into a tables, the photos does not look correctly placed ("Over Lapped").
Example of the results
Please have a look on the code in this repo you may test it to see the results. I have also uploaded the used images to the repo. any thoughts?
https://github.com/mostafa901/Testing-Nova
Finally, after digging a lot, I said I should post my findings may be it come to be useful to someone. I discovered it is not a mistake in the code, but the template file used is of an old office version.
Thanks.
I am using Expert PDF Software Components for covering HTML to PDF using ExpertPdf.HtmlToPdf;
But after conversion it shows watermark
on PDF document
"Expert PDF software components demo version"
Please help me how to remove this watermark
It is because of the component you are using is evaluation version. I guess you'll need to purchase license to remove the watermark. If you have already purchased the license and still getting watermark, consider contacting customer support.
If you are here to seek some cracking solution, nobody is gonna help you here to crack it.
iTextSharp is good as it's the only PDF converter which is opensource and adds no watermark to the document. Moreover, it has some reasonable API reference documentation with it. Another option is, EVO PDF which is a good one as well, give both of them a try.
I'm trying to find a C# library that will allow me to "Print" one of my HTML pages to a PDF file. I can't seem to find out if one currently exists that will allow you to do this. I've found several that will let you build a page, but haven't noticed if one would generate the pdf only based off of HTML.
EDIT: I'm not allowed a budget on this at work so it will need to be an open source/free product. If not I'm aware of iTextSharp and will have to generate the pdf programmatically (which is what I'm hoping to avoid :) )
I've had a lot of luck with ActivePDF WebGrabber. It's kind of odd to use compared to standard managed libraries (ActivePDF is unmanaged), but it gets the job done.
iTextSharp comes with a little companion : XML Worker
For a demo, have a look here
Even though the documentation refers to the Java API, the adaptation to C# should be straightforward.
I've experimented with itextsharp and it works for basic conversion, but gets complicated when you get into styles and formatting. I've also heard wkhtmltopdf is out there as another option.
Given an existing PDF document, I would like to tack on an index to the end of the file to show the pages on which key words show up. It would be best if I don't have to give a list of words to look for and the list of words is automatically generated. However, if a list of words must be given, I can work with it. I'm looking to do this either through a C# library or a command line tool. It needs to run as part of another command line app.
Is there anything out there that is capable of this?
This "PDF Index Everthing" (http://www.pdfstore.com/details.asp?ProdID=799) seems to be on the right track, but requires interaction through its GUI.
I don't actually have an c# solution but hopefully this will still help...
pdflib is an excellent pdf development library. It is one of the better libs available. As far as I know it doesn't have a C# binding. PDF is a random access object-based file format and although there are many libraries that allow for creating of pdfs, most freely available libs don't support adding pages to existing pdfs. pdflib does support adding pages with it's pdi option, so it may be worth checking out.
Updated Info:
Check out- iText# library and
merging pdf files with C# and iText