Focal Point
[CLOSED] Add JPG from URL to PDF Output

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/9647085876

September 25, 2015, 12:34 PM
ColdWhiteMilk
[CLOSED] Add JPG from URL to PDF Output
I'm trying to take the logo from my company's web site and use it in the header of a PDF report. In the past, I've done this with HTML reports, but never PDF.

Can someone please tell me what I'm doing wrong that I get these two errors?
(FOC3231) CANNOT OPEN AN HTTP CONNECTION (GRAPHSERVURL)
(FOC3251) IMAGE FILE UNREADABLE OR INVALID:

I can get to the jpg file with a HTML report, but not a PDF.

  

-SET &ECHO=ALL;

SET ASNAMES = ON

DEFINE FILE SETID_TBL
EMAIL2/A500 WITH SETID_TBL.SETID= '';
END

TABLE FILE SETID_TBL
PRINT

EMAIL2 NOPRINT

ON TABLE SET PAGE-NUM OFF
ON TABLE SET STYLE *
TYPE=REPORT, GRID=OFF, $
TYPE=HEADING, IMAGE=https://www.companywebpage.com/logo_blue.jpg, POSITION=(0 0), SIZE=(11 8), $
ENDSTYLE
ON TABLE PCHOLD FORMAT PDF
END



This message has been edited. Last edited by: <Kathryn Henning>,


Production - 7.6.4
Sandbox - 7.6.4
September 25, 2015, 02:51 PM
Prarie
I don't think jpg is supported by PDF.
September 27, 2015, 06:11 PM
Waz
Images are added a different way for PDF, they must be in the app path, and just the name is specified.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

September 28, 2015, 07:44 AM
BGronli
I have a report with the following:
 TYPE=heading,image=BLACK.gif, position=(.0 1.45), size=(0.01 4.66), $   
The .gif Is in an img directory within the directory where the report resides.


7.7, z/OS & Win7, excel & pdf
8.2 testing