This is an archived forum post. The information may be outdated. Contact us if you have any questions.

Blank images?

creativearc wrote on 2013-06-25:
I created a template called pdf-test that uses a product to generate a PDF.

Example: I used this URL:

http://mgcdiagnostics.com/products/view/ultima-pf-and-pfx-with-gas-chromatography

changed it to this to render the pdf template:

http://mgcdiagnostics.com/products/pdf-test/ultima-pf-and-pfx-with-gas-chromatography

and got the attached as a result.

Mostly successful I think.

Any idea why it lacks the product image in the PDF?
support wrote on 2013-06-26:
Hello,

You have two options to resolve this. In the HTML code that your application sends to the API either

1/ Use a full URL:
src="http://mgcdiagnostics.com/images/made/images/products/UltimaPFXwithGasChromatography_frontview_450_325_c1.jpg"

instead of
src="/images/made/images/products/UltimaPFXwithGasChromatography_frontview_450_325_c1.jpg"



2/ Or you can add the <base> element to <head>:
<head>
  <base href="http://mgcdiagnostics.com">
  ...