Focal Point Banner


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.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     PDF export with JPEG images

Read-Only Read-Only Topic
Go
Search
Notify
Tools
PDF export with JPEG images
 Login/Join
 
Member
posted
Hi, i'm trying to create a pdf with a dynamic number of graphics in it, this graphics must be JPEG so i can copy them, to the clipboard, from my pdf reader.
I'm able to do this with 3 graphics in one page, more than that seems impossible because no pages are added to the pfd file.
Any ideas?
Here is an example of what i have now:



GRAPH FILE CAR
SUM CAR.BODY.SALES
ACROSS CAR.ORIGIN.COUNTRY
ON GRAPH SET LOOKGRAPH VBAR
ON GRAPH SET GRAPHEDIT SERVER
ON GRAPH SET BARNUMB OFF
ON GRAPH SET 3D OFF
ON GRAPH SET VZERO ON
ON GRAPH SET GRID ON
ON GRAPH SET HAXIS 1500
ON GRAPH SET VAXIS 600
ON GRAPH HOLD AS INCUR FORMAT JPEG
ON GRAPH SET GRAPHSTYLE *
-INCLUDE graph_style
setFontSizeAbsolute(getY1Label(), true);
setFontSizeInPoints(getY1Label(), 28);
setPlaceResize(getY1Label(), 0);
setFontSizeAbsolute(getO1Label(), true);
setFontSizeInPoints(getO1Label(), 28);
setPlaceResize(getO1Label(), 0);
setFontSizeAbsolute(getY1Title(), true);
setFontSizeInPoints(getY1Title(), 28);
setPlaceResize(getY1Title(), 0);
setFontSizeAbsolute(getLegendText(), true);
setFontSizeInPoints(getLegendText(), 28);
setPlaceResize(getLegendText(), 0);
setTextRotation(getO1Label(),0);
setLabelStagger(getO1Label(),true);
setTextString(getO1Title(),"");
setDisplay(getDataText(),true);
setFontSizeAbsolute(getDataText(), true);
setFontSizeInPoints(getDataText(), 24);
setPlaceResize(getDataText(), 0);
setPlace(true);
setTransparentBorderColor(getSeries(0),true);
setTransparentBorderColor(getSeries(1),true);
setTransparentBorderColor(getSeries(2),true);
setTransparentBorderColor(getSeries(3),true);
setTransparentBorderColor(getSeries(4),true);
setTransparentBorderColor(getSeries(5),true);
setTransparentBorderColor(getSeries(6),true);
setTransparentBorderColor(getSeries(7),true);
setTransparentBorderColor(getSeries(8),true);
setTransparentBorderColor(getSeries(9),true);
setTransparentBorderColor(getSeries(10),true);
ENDSTYLE
ON GRAPH SET STYLE *
$
ENDSTYLE
END


TABLE FILE CAR
HEADING
"This is a test"
" "
PRINT CAR.BODY.SALES NOPRINT
FOOTING BOTTOM
"Page <TABPAGENO "
-*ON LOGO PAGE-BREAK
-*ON TABLE PAGE-BREAK
ON TABLE SET HTMLCSS ON
ON TABLE SET PAGE-NUM OFF
ON TABLE SET STYLE *
TYPE=REPORT, IMAGE= INCUR.jpg ,  SIZE=(5 3),  POSITION=( 0 1 ),$
TYPE=REPORT, IMAGE= INCUR.jpg ,  SIZE=(5 3),  POSITION=( 0 4 ),$
TYPE=REPORT, IMAGE= INCUR.jpg ,  SIZE=(5 3),  POSITION=( 0 7),$
TYPE=REPORT, IMAGE= INCUR.jpg ,  SIZE=(5 3),  POSITION=( 0 10),$
TYPE=REPORT, IMAGE= INCUR.jpg ,  SIZE=(5 3),  POSITION=( 0 13),$
ENDSTYLE
ON TABLE PCHOLD FORMAT PDF
END

This message has been edited. Last edited by: P. Afonso,


Release : 8.0.02
OS : Linux
App Server : Tomcat
all output
 
Posts: 23 | Registered: June 26, 2012Report This Post
Guru
posted Hide Post
You might try writing a loop that creates a compound PDF report, one graph/page.


GRAPH FILE CAR
SUM CAR.BODY.SALES
ACROSS CAR.ORIGIN.COUNTRY
ON GRAPH SET LOOKGRAPH VBAR
ON GRAPH SET GRAPHEDIT SERVER
ON GRAPH SET BARNUMB OFF
ON GRAPH SET 3D OFF
ON GRAPH SET VZERO ON
ON GRAPH SET GRID ON
ON GRAPH SET HAXIS 1500
ON GRAPH SET VAXIS 600
ON GRAPH HOLD AS INCUR FORMAT JPEG
ON GRAPH SET GRAPHSTYLE *
-INCLUDE graph_style
setFontSizeAbsolute(getY1Label(), true);
setFontSizeInPoints(getY1Label(), 28);
setPlaceResize(getY1Label(), 0);
setFontSizeAbsolute(getO1Label(), true);
setFontSizeInPoints(getO1Label(), 28);
setPlaceResize(getO1Label(), 0);
setFontSizeAbsolute(getY1Title(), true);
setFontSizeInPoints(getY1Title(), 28);
setPlaceResize(getY1Title(), 0);
setFontSizeAbsolute(getLegendText(), true);
setFontSizeInPoints(getLegendText(), 28);
setPlaceResize(getLegendText(), 0);
setTextRotation(getO1Label(),0);
setLabelStagger(getO1Label(),true);
setTextString(getO1Title(),"");
setDisplay(getDataText(),true);
setFontSizeAbsolute(getDataText(), true);
setFontSizeInPoints(getDataText(), 24);
setPlaceResize(getDataText(), 0);
setPlace(true);
setTransparentBorderColor(getSeries(0),true);
setTransparentBorderColor(getSeries(1),true);
setTransparentBorderColor(getSeries(2),true);
setTransparentBorderColor(getSeries(3),true);
setTransparentBorderColor(getSeries(4),true);
setTransparentBorderColor(getSeries(5),true);
setTransparentBorderColor(getSeries(6),true);
setTransparentBorderColor(getSeries(7),true);
setTransparentBorderColor(getSeries(8),true);
setTransparentBorderColor(getSeries(9),true);
setTransparentBorderColor(getSeries(10),true);
ENDSTYLE
ON GRAPH SET STYLE *
$
ENDSTYLE
END


TABLE FILE CAR
HEADING
"This is a test"
" "
PRINT CAR.BODY.SALES NOPRINT
FOOTING BOTTOM
"Page <TABPAGENO "
-*ON LOGO PAGE-BREAK
-*ON TABLE PAGE-BREAK
ON TABLE SET HTMLCSS ON
ON TABLE SET PAGE-NUM OFF
ON TABLE SET STYLE *
TYPE=REPORT, IMAGE= INCUR.jpg ,  SIZE=(5 3),$
ENDSTYLE
ON TABLE PCHOLD FORMAT PDF OPEN
END
-RUN

TABLE FILE CAR
PRINT CAR.BODY.SALES NOPRINT
ON TABLE SET HTMLCSS ON
ON TABLE SET PAGE-NUM OFF
ON TABLE SET STYLE *
TYPE=REPORT, IMAGE= INCUR.jpg ,  SIZE=(5 3),$
ENDSTYLE
ON TABLE PCHOLD FORMAT PDF 
END
-RUN

TABLE FILE CAR
PRINT CAR.BODY.SALES NOPRINT
ON TABLE SET HTMLCSS ON
ON TABLE SET PAGE-NUM OFF
ON TABLE SET STYLE *
TYPE=REPORT, IMAGE= INCUR.jpg ,  SIZE=(5 3),$
ENDSTYLE
ON TABLE PCHOLD FORMAT PDF 
END
-RUN

TABLE FILE CAR
PRINT CAR.BODY.SALES NOPRINT
ON TABLE SET HTMLCSS ON
ON TABLE SET PAGE-NUM OFF
ON TABLE SET STYLE *
TYPE=REPORT, IMAGE= INCUR.jpg ,  SIZE=(5 3),$
ENDSTYLE
ON TABLE PCHOLD FORMAT PDF 
END
-RUN

TABLE FILE CAR
PRINT CAR.BODY.SALES NOPRINT
ON TABLE SET HTMLCSS ON
ON TABLE SET PAGE-NUM OFF
ON TABLE SET STYLE *
TYPE=REPORT, IMAGE= INCUR.jpg ,  SIZE=(5 3),$
ENDSTYLE
ON TABLE PCHOLD FORMAT PDF CLOSE
END
-RUN


WebFOCUS Administrator @ Worldpay FIS
PROD/DEV/TEST: 8204, SANDBOX: 8206 soon - BIP, Reportcaster, Resource Manager, EUM, HyperStage soon, DB: HIVE,Oracle,MSSQL
 
Posts: 291 | Location: Greater Cincinnati  | Registered: May 11, 2005Report This Post
Expert
posted Hide Post
Good One Don
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Member
posted Hide Post
Great,
Worked just fine with your example and loop suggestion.

Thanks


Release : 8.0.02
OS : Linux
App Server : Tomcat
all output
 
Posts: 23 | Registered: June 26, 2012Report This Post
Member
posted Hide Post
By the way, is it possible to do something like this exporting to excel or word?
Or some document that allows me to select and copy a large number of graphics at once in JPEG format?
PDF does the job, but I’m only able to select and copy one graphic at a time, if i want 30, it's a lot a work to do Roll Eyes

Getting this in Excel would be cool, I can only put one, the others just do not show up!

Any suggestions?
Tks,
Pedro

This message has been edited. Last edited by: P. Afonso,


Release : 8.0.02
OS : Linux
App Server : Tomcat
all output
 
Posts: 23 | Registered: June 26, 2012Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     PDF export with JPEG images

Copyright © 1996-2020 Information Builders