• feeneyhead
  • NEWBIE
  • 25 Points
  • Member since 2012

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 2
    Replies

Hi, I am constructing a HTML in a string, and converting it to PDF using the Blob.toPdf() method.

 

I was getting the following error:

 

FATAL_ERROR|System.InvalidParameterValueException: An error occurred while parsing the input string.

 

I checked it line by line, and I realize that this particular line causes this error. I am referencing a Static Resource in an Image tag, and this is causing the error.

 

Can anybody tell me why? and how to resolve this?

 

String htmlBody = '<img src="/resource/1347290849000/myCompany_Logo" />';

Blob.toPdf(htmlBody);

  • September 23, 2012
  • Like
  • 0

Hi, I am constructing a HTML in a string, and converting it to PDF using the Blob.toPdf() method.

 

I was getting the following error:

 

FATAL_ERROR|System.InvalidParameterValueException: An error occurred while parsing the input string.

 

I checked it line by line, and I realize that this particular line causes this error. I am referencing a Static Resource in an Image tag, and this is causing the error.

 

Can anybody tell me why? and how to resolve this?

 

String htmlBody = '<img src="/resource/1347290849000/myCompany_Logo" />';

Blob.toPdf(htmlBody);

  • September 23, 2012
  • Like
  • 0