Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

convert PDF 'Export to' image (tiff) using sdk (c#)

Community Beginner ,
Jun 16, 2020 Jun 16, 2020

Hi.

I wanna use 'export to' function (below picture) using sdk. 

export image.jpgexpand image

 

How can I use that in c#? Or can I get a sample code (pdf to tiff example) somewhere?

Any reply would be helpful!

TOPICS
Edit and convert PDFs
1.3K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 16, 2020 Jun 16, 2020

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jun 16, 2020 Jun 16, 2020

Thanks for reply.

I can find many functions like below picture but I can't find a command like 'saveAs'.

export image VS.jpgexpand image

 

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.

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 16, 2020 Jun 16, 2020

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jun 16, 2020 Jun 16, 2020
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 16, 2020 Jun 16, 2020

It should be a method of the document object, not of the app. Look under AcroPDDoc...

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines