Control PDF from c ++
-
I wanted to navigate to a page in PDF file. Theoretically, this could be done with ShellExecute (NULL, "open", "Path \ File", param1, NULL, SW_NORMAL), where param1 = "# page = 123" or "/ A page = 123" or "/ A \" page = 123 \ ""; then the PDF file is opened, but the page is not activated. You could do the same thing by opening PDF and then navigating to the page. It's a good idea, but it has the disadvantage that I don't know either. Does anyone know? Thanks for the answers
-
I wanted to navigate to a page in PDF file. Theoretically, this could be done with ShellExecute (NULL, "open", "Path \ File", param1, NULL, SW_NORMAL), where param1 = "# page = 123" or "/ A page = 123" or "/ A \" page = 123 \ ""; then the PDF file is opened, but the page is not activated. You could do the same thing by opening PDF and then navigating to the page. It's a good idea, but it has the disadvantage that I don't know either. Does anyone know? Thanks for the answers
-
I wanted to navigate to a page in PDF file. Theoretically, this could be done with ShellExecute (NULL, "open", "Path \ File", param1, NULL, SW_NORMAL), where param1 = "# page = 123" or "/ A page = 123" or "/ A \" page = 123 \ ""; then the PDF file is opened, but the page is not activated. You could do the same thing by opening PDF and then navigating to the page. It's a good idea, but it has the disadvantage that I don't know either. Does anyone know? Thanks for the answers
I posted you a working example in this post: [Control PDF from c ++](https://forums.codeguru.com/showthread.php?565583-Control-PDF-from-c&p=2239935#post2239935)
-
I wanted to navigate to a page in PDF file. Theoretically, this could be done with ShellExecute (NULL, "open", "Path \ File", param1, NULL, SW_NORMAL), where param1 = "# page = 123" or "/ A page = 123" or "/ A \" page = 123 \ ""; then the PDF file is opened, but the page is not activated. You could do the same thing by opening PDF and then navigating to the page. It's a good idea, but it has the disadvantage that I don't know either. Does anyone know? Thanks for the answers
You don't "control the PDF". You have to control the application that is opening and displaying the PDF file. How you do that depends entirely on the application you're using to display the PDF. There's probably going to be applications where you don't have that control. You can do it if the machine has Acrobat Reader installed it, which is what the previous answer is using.
Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles.
Dave Kreskowiak