How to add header and footer image in pdf
Hi,
I want to add image in header and footer for the pdf generation.
how I can add this? Following my xsl
?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:fn="http://www.w3.org/2005/xpath-functions">
<xsl:output method="xml" indent="yes" encoding="utf-8" omit-xml-declaration = "yes" />
<xsl:template match="/">
<fo:root>
<fo:layout-master-set>
<fo:simple-page-master master-name="my-page">
<fo:region-body margin="1in"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="my-page">
<fo:flow flow-name="xsl-region-body">
<fo:block >
<xsl:apply-templates mode="dump" select="/session/entity/instance/attribute"/>
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
</xsl:template>
<xsl:template match="*" mode="dump" priority="100">
<fo:block >
<fo:block margin-left="1cm">
<xsl:for-each select="@question-text">
<xsl:value-of select="."/>=
</xsl:for-each>
<xsl:if test="string-length(normalize-space(text())) > 0">
<xsl:value-of select="text()"/>
</xsl:if>
</fo:block>
<xsl:apply-templates mode="dump" select="*"/>
</fo:block>
</xsl:template>
</xsl:stylesheet>
Edited by: 848231 on Apr 6, 2011 1:42 AM
Hi,
Here is one way of putting an image in the header:
<fo:layout-master-set>
<fo:simple-page-master master-name="my-page">
<fo:region-body margin="1in"/>
<fo:region-before extent="1in" background-color="silver" />
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="my-page">
<fo:static-content flow-name="xsl-region-before">
<fo:block height="150px" width="1024px" background-color="white" >
<fo:external-graphic src="http://localhost:9000/web-determinations9000/images/Header.jpg">
</fo:external-graphic>
</fo:block>
</fo:static-content>
<fo:flow flow-name="xsl-region-body">
</fo:flow>
</fo:page-sequence>One good XSL:FO refernce: http://www.learn-xsl-fo-tutorial.com
Hope this helps.
Thanks,
Aakarsh
Edited by: aakarsh on Apr 6, 2011 6:40 AM
Similar Messages
-
How to Add Header and Footer in Flat file
HI All,
I am using ODI 11g.
MY interface is populating data from joining to 2 tables through sql query and Loads in to Flat file.
But i need to add Header and Footer in the Flat file.
In the below 3 lines
The 1st line is header ....2nd line is Data ....3rd line is Footer.
Any ideas how to work on this.
HSB9KT.KTPRTO.EBSDATA.D0000000 20120626020636
CFFE00263 SOLGSR014991340000527894536058173880207SOLNE06242012072420120000009048382650000247MRS
T00000000000000000000
Thanks,
LonyHi Drieux,
i am able to add Header and Footer in this.
But i want the header like Its like HSB9KT.KTPRTO.EBSDATA.D0000000 || SYSDATE (YYYYMMDDHHMMSS)
In my Out put i only see header as HSB9KT.KTPRTO.EBSDATA.D0000000 .
I have added a Variable where i am using SELECT to_char(sysdate,'YYYYMMDDHHMMSS') FROM DUAL query.
create header (HSB9KT.KTPRTO.EBSDATA.D0000000 #v_DATE)
/*$$SNPS_START_KEYSNP$CRDWG_TABLESNP$CRTABLE_NAME=FFT_SOLSNP$CRLOAD_FILE=/home/tarak/FFT_SOL.datSNP$CRFILE_FORMAT=FSNP$CRFILE_SEP_FIELD=0x0009SNP$CRFILE_SEP_LINE=0x000ASNP$CRFILE_FIRST_ROW=0SNP$CRFILE_ENC_FIELD=SNP$CRFILE_DEC_SEP=SNP$CRSNP$CRDWG_COLSNP$CRCOL_NAME=descrSNP$CRTYPE_NAME=STRINGSNP$CRLINE_OFFSET=1SNP$CRLENGTH=994SNP$CRPRECISION=994SNP$CR$$SNPS_END_KEY*/
Any idea why this sysdate part is not showing in Header. -
How to add header and footer to a file through ODI?
hi,
I want to add header and footer to my file..............footer should contain a counter so that page number can be displayed...................
Can anyone please guide me .................
Thanks .............
Ritikawhat is the utility you are using to create file . Interface or OdiSqlUnload ?
and what do you want to have Header and Footer as and how are you concluding the File as page 1 and page 2 etc ... ? -
How to Add Header and Footer to appear on every page
Hi,
I am using Robo Help 7 for generating Help pages. I have to import a wrod document an publish it as online web help html document. I have query as to how added header and footer be configured to reflect on each and every page. I am using Robohelp for first time and tried various options, but am unable to get the above done.
Thanks,
PallaviHi there
Display your Topic List pod. Press Ctrl+A to select all the topics. Then right-click the selection and choose Properties. From the Properties dialog click the General tab. There you may choose the Template/Master Page. When you click OK all the topics should now be associated with the Template/Master Page.
Cheers... Rick
Helpful and Handy Links
RoboHelp Wish Form/Bug Reporting Form
Begin learning RoboHelp HTML 7 or 8 within the day - $24.95!
Adobe Certified RoboHelp HTML Training
SorcerStone Blog
RoboHelp eBooks -
How to add header and footer in FM12 WebHelp?
Hi
I am evaluating TCS 5 with the trial version.
In FrameMaker 11, while publishing my book to WebHelp, I could associate the masterpage (.htt) file to get its header/footer in the output.
However, I don't see that option in FM12. I have looked through the Help and it doesn't seem to offer any solution either. (Some part of TCS 5 help actually contains TCS 4 content. Have logged a bug report on that.)
If not through the master page, what is the other way to get especially the footer in WebHelp output? Footer contains our copyright information. So, there is no way I can ignore it.
Can somebody please point me to the right direction?
Thanks in advance.
SreekanthWe had a meeting with Adobe yesterday and one of the product managers (Kapil Verma or Vikram Verma, I am not sure) confirmed that there is no provision for getting the header/footer information from FrameMaker or RoboHelp while publishing WebHelp from FM12.
So, unfortunately, we have to stick to the old method of importing FM to RH to get this. It is a pity that they got the browse sequence into FM but removed master page, eventually resulting in an unusable feature.
Sreekanth -
Add Header and Footer in Live Cycle ES2
Hi,
We are quite new to the use of live cycle pdf generation. Can anyone help us with information as to how we can add header and footers to our pdf files using livecycle ES2.
And further, we would like to know whether header and footer adding is available in the trial version of Livecycle ES2?Hi,
Thanks for the reply.
We have another newly raised problem in the header and footer adding from Livecycle ES2. According to the PDF that you referred in the previous reply, we can add graphics to the PDF header, but we are unable to find a DDX tag that would enable us to add a image URL.
Can you please help us again on the above?
Purnima -
Need to add Header and footer in an alv grid display output.
How can I add header and footer in an alv grid dispay output.
For the grid display, I am using the function module "REUSE_ALV_GRID_DISPLAY".HI,
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
i_callback_program = gd_repid
i_callback_top_of_page = 'TOP-OF-PAGE'
i_callback_html_end_of_list = 'END_OF_LIST_HTML'
is_layout = gd_layout
it_fieldcat = fieldcatalog[]
i_save = 'X'
tables
t_outtab = it_ekko
exceptions
program_error = 1
others = 2.
FORM end_of_list_html USING end TYPE REF TO cl_dd_document.
DATA: ls_text TYPE sdydo_text_element,
l_grid TYPE REF TO cl_gui_alv_grid,
f(14) TYPE c VALUE 'SET_ROW_HEIGHT'.
ls_text = 'Footer title'.
adds and icon (red triangle)
CALL METHOD end->add_icon
EXPORTING
sap_icon = 'IL'.
adds test (via variable)
CALL METHOD end->add_text
EXPORTING
text = ls_text
sap_emphasis = 'strong'.
adds new line (start new line)
CALL METHOD end->new_line.
display text(bold)
CALL METHOD end->add_text
EXPORTING
text = 'Bold text'
sap_emphasis = 'strong'.
adds new line (start new line)
CALL METHOD end->new_line.
display text(normal)
CALL METHOD end->add_text
EXPORTING
text = 'Nor'.
adds new line (start new line)
CALL METHOD end->new_line.
display text(bold)
CALL METHOD end->add_text
EXPORTING
text = 'Yellow '
sap_emphasis = 'str'.
adds and icon (yellow triangle)
CALL METHOD end->add_icon
EXPORTING
sap_icon = 'IC''.
display text(normal)
CALL METHOD end->add_text
EXPORTING
text = 'Mor'.
*set height of this section
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
IMPORTING
e_grid = l_grid.
CALL METHOD l_grid->parent->parent->(f)
EXPORTING
id = 3
height = 14.
ENDFORM. "end_of_list_html.
This will solve it. Post if you need more help in this.
Regards,
Madhu. -
Add Header and Footer in PDF-presenation, Photoshop CS3
Hi
How is it possible to make at Header and Footer in a PDF-Presentation generatet in Photoshop CS3 without placing it on every image. Is there a setting (I have not found it) where you can predefine this?
Best regards/Jeanhi,
//changing the font of the rows populated
u can create Font instance like this:
Font fontName= new Font();
fontName.setSize(7.5f);
fontName.setStyle(fResDetails.BOLD);
fontName.setColor(255, 91, 91);
// In the following code you are adding a cell with name 'cellName' to the Table.Here table is an instance of the Table class.
PdfPCell cellName = new PdfPCell(new Phrase("columnHeader", fontName));
table.addCell(cellName );
cellName .setHorizontalAlignment(Element.ALIGN_LEFT);
cellName .setVerticalAlignment(Element.ALIGN_LEFT); -
How to print Header and footer in same page
Hi All,
I am using Oracle Report 10g. How can I add header and footer on same page as my body? Right now when a generate a pdf file, it is printing individual pages instead of 1 one page. Please help me.
RegardsHI
First of all,
Unless otherwise you selected some option like page break after/before - both body and header/footer will print on same page in report, so in pdf as well.
If you have difference on report and PDF that you should look into your setup.
If you want more help, please be particular on your issue
james. wrote:
Hi All,
I am using Oracle Report 10g. How can I add header and footer on same page as my body? Right now when a generate a pdf file, it is printing individual pages instead of 1 one page. Please help me.
Regards -
How to change header and footer in login page in oracle apps r12
Hi all,
how to change header and footer in login page in oracle apps r12 and login button background color, please help me
thanks
saranhow to change header and footer in login page in oracle apps r12 and login button background color, please help meTips For Personalizing The E-Business Suite R12 Login Page (MainLoginPG) [ID 741459.1]
How to Personalize Login page in R12? [ID 579917.1]
R12 Login Page: How to Personalize the Logo ? [ID 849752.1]
Thanks,
Hussein -
How to place header and footer in OO-ALV program using class
How to place header and footer in OO-ALV program using class tell me wat r the class we shold use and their attributes as well
Hi Venkatesh,
Take a look at this how to [ABAP Objects - ALV Model - Using Header and Footer|https://wiki.sdn.sap.com/wiki/x/xdw]
it's explaining how to define the classes and use it for display an ALV with Header and Footer.
Regards,
Marcelo Ramos -
How to print header and footer in SET_TABLE_FOR_FIRST_DISPLAY
Hello Experts,
How to print header and footer while using the method SET_TABLE_FOR_FIRST_DISPLAY, any tips from the experts will be appreciated.
Regards,
BabuHi,
there are four events for printing: print_end_of_list, print_top_of_list, print_end_of_page and print_top_of_page. More information about implementing these events is in this bible for ALV:
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a415907
Cheers -
Acrobat Pro 9.4.6 Add Header and Footer - can't save selection -
The "window" which opens when you select add Header and Footer is too large so no "accept" option is displayed. Can onlt exit by closing window
The "window" which opens when you select add Header and Footer is too large so no "accept" option is displayed. Can onlt exit by closing window
-
How to remove header and footer from a "blank" page in Pages?
Hi,
In the top and the bottom there seems to be a header and footer, it noticeable when i do "mouse over". But when i right click i don't get the option to delete it. I cannot move it. I cannot move any other text or colums above it.
??? Help+Inspector > Document (1st tab) > Document > Uncheck Header and Footer+
The Pages09_UserGuide.pdf is available for download under the Help menu and is a good read. -
Unsupported version Error while generating header and footer for the PDF
hi
I want to genrate header and footer for the PDF file however on the call of the EndPage class i got a Unsupported Version Error Unsupported major minor Version Error and Class loader Define class
What has gone wrong ?.Can you provide more information about what you were trying to do? In particular, what does your code like like?
Also, can you include the stack trace, and the complete error message?
Maybe you are looking for
-
I am trying to create a form for safety inspections. I need have a list of employees in a drop down menu format. Is there a way to copy the populated drop down menu to be used several times in the document?
-
Any suggestions for what to look for in a good production monitor?
I'm in the market for a production monitor and I'm looking at B&H's online catalogue now. Any tips on what to look for and if anyone has any recommendations or favorites? Thanks.
-
Hi, we installed a additional dialog instance for our entprise portal. the instance is up&running, but no one is connected. i can manage the instance in the config tool and added 3 servers. do i have to set up a additional web dispatcher? - like me
-
Is it possible to remove an activity from a BP
Hi Experts, I have created a new activity (from an email from Outlook Integration) which is stored against the BP C10034. However, it should have been saved again BP C10043... can I remove this activity from the BP's Related Activities screen? Ther
-
Slow Imac after Maverick Update
Since I upgraded to Maverick OS 10.9 my computer has become radically slow, in redraw, browseing (safari very slow) and almost every application can anyone subjest a solution for this problem. Model Name: iMac Model Identifier: iMac12,1 Processor