Put a pdf in a form
I want to select a pdf from the pc and format it in a button or something. When I press the button to open the file. I really don't know what to do, the project is in winforms c#. I know about savefiledialog but I don't know how to do the rest
5 Replies
Do you want to click a button to open a file? Can you describe it in more detail?
@Ale what do you mean “format it in a button”?
There is a OpenFileDialog aswell
tho, im afraid i dont know how to put the contents of a PDF inside a form
I want to take a pdf from the PC after, already in the interface I pressed a button, it opens where I have folders, I click on a pdf, I give ok and I want the content of that pdf to be saved in something and to be displayed on the form, so that later when yes someone click on it to open and see the content
I want to take a pdf from the PC after, already in the interface I pressed a button, it opens where I have folders, I click on a pdf, I give ok and I want the content of that pdf to be saved in something and to be displayed on the form, so that later when yes someone click on it to open and see the content
@Ale You should first get the file stream, and then use the pdf parsing library to parse what you need, you can search for information on github