C
C#6mo ago
Ale

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
Arvid
Arvid6mo ago
Do you want to click a button to open a file? Can you describe it in more detail?
jcotton42
jcotton426mo ago
@Ale what do you mean “format it in a button”?
TheSnowOwl
TheSnowOwl6mo ago
There is a OpenFileDialog aswell tho, im afraid i dont know how to put the contents of a PDF inside a form
Ale
AleOP6mo ago
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
Arvid
Arvid6mo ago
@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
Want results from more Discord servers?
Add your server