Is FileToPDF2 api of "Adobe Distiller DC" got updated?

New Here ,
May 08, 2019

Copy link to clipboard

Copied

As per  https://www.adobe.com/content/dam/acom/en/devnet/acrobat/pdfs/distiller_api_reference.pdf  this  documentation  "FileToPDF"  API accepts 4 parameters.

It was working in the older version of Distiller DC.

We updated the Distiller DC to version 19.10.20100325521

After that it gives the error as  "Microsoft VBScript runtime error: Wrong number of arguments or invalid property assignment: 'FileToPDF".

We tested it by passing 5 arguments it started working fine.

But if we create the script by passing 5 arguments it doesn't support the older version of Distiller.

have you updated this API? or are we looking into wrong document?

Can you let us know what is the issue?

[Moderator: Changed the title slightly according to OP's message]

TOPICS
Acrobat SDK and JavaScript

Views

290

Likes

Translate

Translate

Report

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

Is FileToPDF2 api of "Adobe Distiller DC" got updated?

New Here ,
May 08, 2019

Copy link to clipboard

Copied

As per  https://www.adobe.com/content/dam/acom/en/devnet/acrobat/pdfs/distiller_api_reference.pdf  this  documentation  "FileToPDF"  API accepts 4 parameters.

It was working in the older version of Distiller DC.

We updated the Distiller DC to version 19.10.20100325521

After that it gives the error as  "Microsoft VBScript runtime error: Wrong number of arguments or invalid property assignment: 'FileToPDF".

We tested it by passing 5 arguments it started working fine.

But if we create the script by passing 5 arguments it doesn't support the older version of Distiller.

have you updated this API? or are we looking into wrong document?

Can you let us know what is the issue?

[Moderator: Changed the title slightly according to OP's message]

TOPICS
Acrobat SDK and JavaScript

Views

291

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
May 08, 2019 0
Adobe Community Professional ,
May 08, 2019

Copy link to clipboard

Copied

Discussion successfully moved from Forum comments to Acrobat SDK

Forum comments is intended for comments regarding the fora, not for specific products.

Regards, Abambo
Hard- and Software Engineer and Photographer.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 08, 2019 0
New Here ,
May 08, 2019

Copy link to clipboard

Copied

A small changes in the question

It's "FileToPDF2" API not "FileToPDF".

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 08, 2019 0
Adobe Community Professional ,
May 08, 2019

Copy link to clipboard

Copied

Hi,

Can you post that actual code that you are using?

Regards

Malcolm

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 08, 2019 0
New Here ,
May 08, 2019

Copy link to clipboard

Copied

Earlier it was working with this bit of code:

Set theDistillerObj = CreateObject( "PdfDistiller.PdfDistiller6" )

theDistillerObj.FileToPDF2 Wscript.Arguments(0), Wscript.Arguments(1), Wscript.Arguments(2), 1

In old distiller it works perfectly fine. The arguments are exactly what is explained in SDK.

In new distiller we get error:

Microsoft VBScript runtime error: Wrong number of arguments or invalid property assignment: 'FileToPDF2"

But if we pass the last argument as below it seems to work:

theDistillerObj.FileToPDF2 Wscript.Arguments(0), Wscript.Arguments(1), Wscript.Arguments(2), 0, 1

Notice the zero (0) before last argument 1.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 08, 2019 0