convert PDF 'Export to' image (tiff) using sdk (c#)
Copy link to clipboard
Copied
Hi.
I wanna use 'export to' function (below picture) using sdk.
How can I use that in c#? Or can I get a sample code (pdf to tiff example) somewhere?
Any reply would be helpful!
Copy link to clipboard
Copied
I'm not familiar with C#, but using JavaScript it can be done by using the saveAs command and specifying the cConvID parameter as "com.adobe.acrobat.tiff". There's probably something similar in C#. If not, try executing it using JS.
Copy link to clipboard
Copied
Thanks for reply.
I can find many functions like below picture but I can't find a command like 'saveAs'.
I made a program has another function with c# and I wanna combine with Acrobat SDK. So I think it takes more time to learn a Java.
Copy link to clipboard
Copied
1. Not Java, JavaScript. It's a different language, and searching for Java will lead you to waste a lot of time.
2. There is a bridge from Visual Basic to Acrobat JavaScript, allowing a lot of methods to be used, though it's often easier to build the complete JavaScript statement and send it to execute.
3. Some people have made the same bridge work with C#. It seems possible but (from my perspective) cumbersome.
4. You need to study the Acrobat SDK in detail. There are thousands of pages, expect study to take a long time.
5. Some of us would prefer if you do not ask for sample code instead of study. We prefer to see questions that ask for pointers into the documentation, or interpretation of it, or why your code fails. This is a personal preference, but from my perspective, if we provide sample code, we find people come back again and again for more sample code, rather than learning. Your mileage may vary.
Copy link to clipboard
Copied
Thank you very much for your kind and detailed answer.
It may sound like an excuse, but programming wasn't my major and I wanted to do it quickly.
It would be better to study deeply without thinking impatiently.
It would be difficult to connect JavaScript to c# , as you say.
I will check the Acrobat SDK manual (c#) and I will solve it.
Have a nice day.
Copy link to clipboard
Copied
It should be a method of the document object, not of the app. Look under AcroPDDoc...

