Output all hyperlinks in a pdf with C# - c#

a good friend of mine is currently writing a book for his PhD, and asked me if I could help him automate the process of checking all his given sources (hyperlinks). I've searched all over the internet and could not find any helpful tip on how to help him though. I've came across iText7 and iTextSharp, but could not manage to make them work.
For the beginning it would already be a huge help, if I could just look out for the links (by parsing the whole pdf into a string, and search for the //.../ tags?), and show them in a listbox.
I was not able to find any link using the iTextSharp ANNOT function, so I guess the pdf he gave me is not correctly formatted.. I should still be able to parse the text and search for links (RegEx), right?
Does anyone have a hint for me, on how I could make this work? Thanks in advance!

Related

Reading workouts data from FIT file

Hello I am trying read data from .fit extension file from c#.
I need to fetch workouts data from that file.
I have some sample files using and I am using idk at https://www.thisisant.com/resources/fit
I am unable to find any sort of documentation or any.
Any sort of guidance in this regards will be helpful.
Thanks in advance.
If you head to their page (https://www.thisisant.com/resources/fit/), and click the "I agree" button on the bottom, you'll get a zip with a whole bunch of PDF explaining what's what, plus some code examples for C# (and c,cpp, java as well).
What is it exactly you can't find ?

Convert .dta-file to .csv-file

I'm currently stuck with a very rare answered question:
I have a .dta-file on my computer which contains different data. A normal text editor can't read it as it is binary.
To work with this file, I need to convert it to a .csv-file. I've made my way through Google-results, but I just get info about R and Python, nothing about VB.NET/C#.
Is there any way to convert a .dta file to a .csv in .NET?
I can't really give more information as that is all I can say about it (never worked with .dta before).
As Google does not give me any real help to that, I bring my question up here.
Thanks in advance.

Creating an HTML document out of RichTextBox in WPF

I am having issues creating an html document out of a RichTextBox. I am able to get all of the text out of the RichTextBox. This issue is when I go to get images that I pasted in by using Windows Snipping tool don't show up in the document. Is there a way to do this?
Perhaps you could give us a non-working example where the error occurs in order to help you. Anyway, you could also check this and this out.
Hope I helped!

how to search and highlight pdf's keyword programmatically

i've tried two different component to integrate pdf file in windows form application (c#).
the above mentionated component are PDFSharp and Sloppycode webBrowserEx.
Now, both of them work fine, but I'm not able to search and highlight programmatically full text defining by user through a textBox.
Can anyone give me some suggest to achieve my purpose?
Thanks in advance.
I found this answer to help me when I was working with PDFs. Not sure if you seen it yet but it may help you. I went with iTextSharp.
how to highlight a text or word in a pdf file using iTextsharp?
hope it helps.

Editing Excel Spreadsheets easily with the SDK

is there anyone who makes use of the Microsoft Open XML SDK 2.0 for editing Excel Spreadsheet, I edited Open XML documents already by only using XML methods, but as there exists the SDK, does someone know if there are really easy methods for some essential functions? For Example the inserting of content in a cell. Also the Open XML Power Tools (published on codeplex) use mostly XML objects I think.
If you have experience, would you give me an example or a hint where I can find useful examples? I already know the site openxmldeveloper.org but also the workshop videos did not help me at all.
thanks
Sebastian
Sebastian, I have not made use of this API yet, but will be using it soon. It appears there are methods for opening docs, updating/inserting into cells. Please check out MSDN. Also, there is an example at: http://msdn.microsoft.com/en-us/library/cc861607(office.14).aspx
Good Luck!

Categories