As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.
Join the TIBCO Community TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.
From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
Request access to the private WebFOCUS User Group (login required) to network with fellow members.
Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.
Is it really true that only GIF images can be embedded in PDF reports?
Will IBI be changing this? It would be nice to be able to embed other formats, eg. EPS, so that when a PDF report is printed, the image, a logo for example, looks good. At the moment, a gif is 72 dpi which does not print very well.
In 5.3.2 and higher, as was mentioned in the previous post, SVG graphics were introduced to address, among other things, printing.
SVG graphics print at typical printer resolutions (at least 300 dpi), and give you the "boardroom quality" results. Note that JPG and PNG are also included output formats in 5.3.2 and higher.
I see that what you want to do is embed an image into your reports. If I am not mistaken, a TABLE request supports GIF and JPG. I receive the same error as you if I try to call a PNG or something else.
A GRAPH request supports generating SVG, PNG, etc.
This worked for me:
TABLE FILE CAR SUM SALES DEALER_COST BY COUNTRY ON TABLE SUBHEAD " " " " " " ON TABLE SET PAGE-NUM OFF ON TABLE NOTOTAL ON TABLE SET ONLINE-FMT PDF
For now, you might want to consider JPG's instead of GIF's for increased image resolution. The drawback is that JPG's do not support transparencies like GIF's do.
Here are some comments and a fex from a colleague who has been playing with svg and pdf:
here's what I have found: - you must issue an APP HOLD to the directory you are running in - you need a separate TABLE file for each Image to be included - you can suppress the output of the TABLE if you NOPRINT - you lose your headers and footers for your charts when saved - Image does NOT line up with TABLE... you must specify where it goes - SVG works with PDF - PNG works with HTML - I haven't played much with the spacing
-* File gifpdf2.fex -SET &ECHO=ALL; APP HOLD farrs_wf -* GRAPH FILE CAR SUM SALES BY COUNTRY ON GRAPH HOLD AS CARSVG1 FORMAT SVG END -RUN -* GRAPH FILE CAR SUM CNT.MODEL BY COUNTRY ON GRAPH HOLD AS CARSVG2 FORMAT SVG END -RUN -* TABLE FILE CAR SUM SALES NOPRINT BY COUNTRY ON TABLE SET STYLE * TYPE=REPORT, IMAGE=carsvg1.svg, POSITION=(2 0), SIZE=(5 3), $ ENDSTYLE ON TABLE PCHOLD FORMAT PDF OPEN NOBREAK END
TABLE FILE CAR PRINT MODEL NOPRINT IF RECORDLIMIT EQ 1 ON TABLE SET STYLE * TYPE=REPORT, IMAGE=carsvg2.svg, POSITION=(2 3), SIZE=(5 3), $ ENDSTYLE ON TABLE PCHOLD FORMAT PDF CLOSE END
We are using WFServlet on unix with Apache and Tomcat. farrs_wf is the document root for a virtual host (for this user) running on a different port (not port 80) that we use for each user's DevStudio "sandbox". All data and programs on unix. No MRE, BID, RC, etc. This request is run from DevStudio, not self-serve.
Hope this helps.
Suzy
Posts: 124 | Location: Lebanon, New Hampshire | Registered: April 24, 2003
Another thing to know about SVG format is measurement units for SVG are inches and the measurement units for every other format is pixels. Which is why I could not get my SVG Graph to work. ON GRAPH SET VAXIS 3.5 ON GRAPH SET HAXIS 11.0
Live and Learn.
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005