Focal Point
Images in PDF

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

August 30, 2013, 07:05 PM
LanaH
Images in PDF
I need to add two images into a PDF document. Can this be done? I have had no luck trying. This is a compound document and the images need to be part of the last report. All reports make up one PDF document.


WF.77.03 on Tomcat Windows Platform (DB2 + MS-SQL
old WF.76-10 on (WS2003 + WebSphere) / EDA on z/OS + DB2 + MS-SQL
August 31, 2013, 10:36 AM
Twanette
Hi,

For compound reports, the recommended way to create a design theme with repeating images on a page master is to place them as drawing objects on the page master.
OBJECT=IMAGE, IMAGE=file, POSITION=(x y), DIMENSION=(xdim ydim), $


To add images to a specific PDF report, you need to specify them in the stylesheet.
There are various ways that this can be done. Here are some examples. You can reference the manuals to find out more about each attribute in these examples.
TYPE={REPORT|heading}, IMAGE={file|(column)} [,BY=byfield][,POSITION=([+|-]x [+|-]y )] [,SIZE=(w h)] [,PRESERVERATIO={ON|OFF}],$
e.g.
TYPE=TABHEADING, IMAGE=GOTHAM.GIF, POSITION=(.25 .25), SIZE=(.5 .5), $

TYPE=DATA, COLUMN=imagefield, IMAGE=(imagefield), SIZE=(w h),[PRESERVERATIO={ON|OFF},] $
e.g.
TYPE=DATA,COLUMN=P1,IMAGE=(PRODIMAGE),SIZE=(1 1),$
TYPE=DATA,COLUMN=P2,IMAGE=(PRODIMAGE),SIZE=(2 3),PRESERVERATIO=OFF,$
TYPE=DATA,COLUMN=P3,IMAGE=(PRODIMAGE),SIZE=(2 3),PRESERVERATIO=ON,$


PDF reports support GIF and JPEG, as well as SVG files that are created by the WebFOCUS graph engine. The image must reside on the WebFOCUS Reporting Server in a directory named on EDAPATH or APPPATH. If the file is not on the search path, supply the full path name.

Hope this helps.


WebFOCUS 8.2.06 mostly Windows Server
September 02, 2013, 12:32 PM
LanaH
Thank you Twanette for your response. This compound report had a logo a title on the page, six reports that appear as one each with different information and then a footing on the main page.

What I needed was two small (6.5 .12) images to be printed in the subfoot in the last report.

What I have forgotten was the position, once I added that it works fine.

Thank you again and consider this problem solved.


WF.77.03 on Tomcat Windows Platform (DB2 + MS-SQL
old WF.76-10 on (WS2003 + WebSphere) / EDA on z/OS + DB2 + MS-SQL
September 03, 2013, 03:23 PM
Doug
Tag It as [SOLVED]