Skip to main content
Participating Frequently
July 24, 2019
Answered

Does Acrobat SDK PDFBinder sample convert html files to PDF?

  • July 24, 2019
  • 2 replies
  • 1598 views

Hello, I was testing the sample with the given test folder. It had a htm file in it and also a txt. When I rid of the filter in plugin and ran the plugin in Acrobat, it could not convert the txt and htm files into PDF. Is there any way to do so for these file types?

This topic has been closed for replies.
Correct answer lrosenth

No, AVConversionConvertToPDF hould work fine.

What error(s) are getting returned when you try the text and HTML file?

2 replies

Participating Frequently
July 25, 2019

There weren't any specific error. Rather, a message box "Cannot convert the file." There is an if statement to see if the conversion was successful. If not, the message box appears and get out of the function.

Bernd Alheit
Community Expert
Community Expert
July 25, 2019

Can you convert the file in Adobe Acrobat?

Participating Frequently
July 25, 2019

Yes. Acrobat manually convert those files successfully.

lrosenth
Adobe Employee
Adobe Employee
July 24, 2019

Of course.

The same AVConversion APIs will handle those formats as well.

Participating Frequently
July 24, 2019

Thank you for answering.

I noticed that the sample uses AVConversionConvertToPDF method, but it is not successful for the txt and htm files inside the test folder. Does the "conversion handler" that AVConversionConvertToPDF uses not convert those two type? Am I suppose to use a different method and approach it differently than what the sample has?

lrosenth
Adobe Employee
lrosenthCorrect answer
Adobe Employee
July 24, 2019

No, AVConversionConvertToPDF hould work fine.

What error(s) are getting returned when you try the text and HTML file?