Emdedding a pdf file generated on app server in a peoplesoft page
All,
I have a requirement to embed a pdf file on the app server in a peoplesoft page.
I am planning to do a push the file to the webserver using put attachment and then add a reference to the image in an html area on the page.
However, I need to position the pdf document when the page is displayed as the html area is smaller than the pdf document such that the middle part of the document is shown to the user. This is required so that the user does not have to sroll to that position.
Is there a way to do this ?
What is the PeopleTools version and application version you are using.
Jayaprakash Tedla
Similar Messages
-
Creation of Note in PDF file generated from Output Server
I would like to be able to force Output Server to create a Note (in expanded format) on a PDF file. I see the bookmark information in the manual, however I was not able to locate any documentation referencing the note tool. Is this possible? If so, can someone provide a brief example of a command that would need to be passed through the data stream to generate a note on a PDF document?
Unfortunately, Output Server doesn't allow you to create PDF comments. The best you could probably do is generate a PDF and then create an XFDF that references that PDF and also contains your comments. Check the Adobe PDF Developer's site for information on XFDF.
Regards,
Rob McDougall
Indigo Pacific Ltd. -
PDF file write to application server
Hi All,
I want to write PDF file to application server while downloading its writing but in this manner
%PDF-1.6#%####
108 0 obj#<</First 17/Length 108/Filter/FlateDecode/N 3/Type/ObjStm>>stream
xڲT0P04Q07W05#2,#ll##K#J*#R#C####Sbq#[^##GjNYjIfr##SN##kr~Jf#~xf#c^q&##Ҧ##agG#a####X###T##XR### ##b#
Please let me know where i am doing wrong.
Please see below my code .
(the scenario is when i download the pdf file i want to write the same file in to app server )
call function fm_name
exporting
/1bcdwb/docparams = fp_docparams "
ls_header = ls_waste
lt_item = gt_rkpf
aufnr = lv_aufnr
importing
/1bcdwb/formoutput = fp_formoutput
exceptions
usage_error = 1
system_error = 2
internal_error = 3
others = 4.
concatenate 'D:\temp\PROCESSORDER_' ls_waste-rsnum '.PDF' into lv_file.
pr_file = lv_file.
open dataset pr_file for output in binary mode."text mode encoding NON-UNICODE.
if sy-subrc 0.
exit.
endif.
transfer fp_formoutput-pdf to pr_file.
close dataset pr_file.
clear :fp_formoutput-pdf,lv_file.
Please any one help me thanks,
Thanks,
KumarYou can't tranfer the whole PDF data with just one transfer statement, instead you have to loop that table and transfer the data to the file until you reach the last row.
open dataset pr_file for output in binary mode."text mode encoding NON-UNICODE.
if sy-subrc 0.
exit.
endif.
loop at fp_formoutput-pdf *****************
transfer fp_formoutput-pdf to pr_file.
endloop.
close dataset pr_file.
clear :fp_formoutput-pdf,lv_file. -
Background Job spool / output file in different app server
We are working with 2 ECC app servers, A and B.
I've defined in app server A a background job to run an abap report and this report creates and submit 4 other background jobs.
Each of these 4 jobs is regarding an abap report which outputs a text file in the server.
The question is, why are the jobs generating the files in different app servers randomically?
The same file, in the 1st execution was generated in app server A, and without any change was generated in app server B, in the job 2nd execution?
Thank you!Hi,
You can specify server name whille creating a batch job , so that it gets executed to that server only.
there is one field (in SM36 during creation or SM37 while modifying batch job) called "Exec Target " , where you can specify server name.
Hence you can plan to run your some batch jobs on server A or B.
Regards,
Rupali -
CL_GUI_PDFVIEWER and files from the App server
Hi,
I would liek to use the class CL_GUI_PDFVIEWER to read files from the app server (transaction AL11) and then to present them.
it is easy to use the local machine files.
how can I use the method open_document with a file from there?
Thanks,
ItayThanks for the help.
I tried what you suggested but I get a dump for some reason.
Can you help?
This is the dump:
Exception condition "SYSTEM_FAILURE" raised.
Program SAPLOLEA
Include LOLEAU10
Row 358
Module type (FUNCTION)
Module Name AC_FLUSH_CALL_INTERNAL
This is the program:
REPORT zpdftest .
DATA: g_html_viewer TYPE REF TO cl_gui_html_viewer,
my_main_container TYPE REF TO cl_gui_custom_container,
entry1(100) TYPE c,
entry2(100) TYPE c.
DATA: okcode TYPE sy-ucomm,
gt_pdf TYPE STANDARD TABLE OF string,
wa_pdf TYPE string,
g_url(2048) TYPE c
START-OF-SELECTION.
SET SCREEN 100.
*& Module pbo_0100 OUTPUT
MODULE pbo_0100 OUTPUT.
SET PF-STATUS 'STATUS100'.
SET TITLEBAR 'TITLE100'.
IF my_main_container IS INITIAL.
CREATE OBJECT my_main_container
EXPORTING
container_name = 'CUSTOM_CNTL'
EXCEPTIONS
cntl_error = 1
OTHERS = 2.
CHECK sy-subrc IS INITIAL.
CREATE OBJECT g_html_viewer
EXPORTING
parent = my_main_container
EXCEPTIONS
cntl_error = 1
cntl_install_error = 2
dp_install_error = 3
dp_error = 4
OTHERS = 5
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
DATA: lv_filename TYPE rlgrap-filename.
lv_filename = '/PBMGUS/UXA/ABAP/TEST.PDF'.
OPEN DATASET lv_filename FOR INPUT
IN BINARY MODE
WHILE sy-subrc IS INITIAL.
READ DATASET lv_filename INTO wa_pdf.
IF NOT sy-subrc IS INITIAL.
EXIT.
ENDIF.
APPEND wa_pdf TO gt_pdf.
ENDWHILE.
CLOSE DATASET lv_filename.
CALL METHOD g_html_viewer->load_data
EXPORTING
type = 'application'
subtype = 'pdf'
IMPORTING
assigned_url = g_url
CHANGING
data_table = gt_pdf
EXCEPTIONS
dp_invalid_parameter = 1
dp_error_general = 2
cntl_error = 3
OTHERS = 4
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
CALL METHOD g_html_viewer->show_url
EXPORTING
url = g_url
EXCEPTIONS
cntl_error = 1
cnht_error_not_allowed = 2
cnht_error_parameter = 3
dp_error_general = 4
OTHERS = 5
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDIF.
ENDMODULE. " pbo_0100 OUTPUT
*& Module pai_0100 INPUT
MODULE pai_0100 INPUT.
CASE okcode.
WHEN 'BACK'.
LEAVE to screen 0.
WHEN OTHERS.
CALL METHOD cl_gui_cfw=>dispatch.
ENDCASE.
CLEAR okcode.
ENDMODULE. " pai_0100 INPUT -
Where is a PDF file, generated by Agent (BIEE11g), stored?
Hi,
In BIEE11g, I created an Agent for scheduling to generate PDF files from Analysis.
In tab: "Delivery Content", I choose PDF in field "Format", and BIEE will automatically chooise option "Deliver as attachment".
At the same time, in tab: "Destinations", I just choose "Home Page and Dashboard" for field: "User Destinations".
After scheduling time, an Alert is generated, and there is data and graph embedded in the content of the Alert. However, I don't find any URL for downloading PDF file. I want to make use of BIEE Agent that so that I can keep snapshot data for the report.
Anyone know where where is the PDF file, generated by Agent (BIEE11g), stored?
ThanksA nice way to achieve this is to export the reports to the server's filesystem using the Actions tab > Invoke Server Script. On a Windows server you can write a little VBScript or Javascript and pass it the PDF file which then gets saved to disk. I have some code if you are interested - contact me via my blog.
Paul -
Why icannot export pdf file from other app to ibook (after update today)?. Please correct my problem.
iPad 2, iOS 5.0.1Why icannot export pdf file from other app to ibook (after update today)?. Please correct my problem.
iPad 2, iOS 5.0.1 -
Setting password in pdf file in oracle apps
Hi
Here is my requirement to set password protech in pdf file and send to email.Can anyone help me how to set password in pdf file in oracle apps 11i
ThanksFile > Properties. Then under Security change Security method to None; enter the Control password when prompted. Then Save As.
-
Regarding the uploading the pdf file to the application server
hi,
iam getting this error while uploading the pdf file to the applicatioin server.
"There was an error while trying to parse an image"
to convert smartform into PDF file we ll use convert_otf FM.
If see that FM data ll be stored in it_tline structure ok.
For sending to application server we ll use
OPEN DATASET p_arch for OUTPUT IN TEXT MODE ENCODING DEFAULT IGNORING CONVERSION ERRORS.
LOOP AT it_tline.
TRANSFER it_tline to p_arch.
ENDLOOP.
CLOSE DATASET p_arch.
Ok
For getting data from internal table we ll use
OPEN DATASET p_arch FOR INPUT IN TEXT MODE ENCODING DEFAULT IGNORING CONVERSION ERRORS
do.
READ DATASET p_arch INTO it_tline.
if sy-subrc = 0.
APPEND it_tline.
ELSE .
exit.
endif.
enddo.
CLOSE DATASET p_arch.
LOOP AT it_tline.
TRANSLATE it_tline USING '~'.
CONCATENATE wa_buffer it_tline INTO wa_buffer.
ENDLOOP.
TRANSLATE wa_buffer USING '~'.
DO.
i_record = wa_buffer.
APPEND i_record.
SHIFT wa_buffer LEFT BY 255 PLACES.
IF wa_buffer IS INITIAL.
EXIT.
ENDIF.
ENDDO.
Attachment
REFRESH:
i_reclist,
i_objtxt,
i_objbin,
i_objpack.
CLEAR wa_objhead.
i_objbin[] = i_record[].
Create Message Body
Title and Description
i_objtxt = 'COMMERCIAL INVOICE'.
APPEND i_objtxt.
DESCRIBE TABLE i_objtxt LINES v_lines_txt.
READ TABLE i_objtxt INDEX v_lines_txt.
wa_doc_chng-obj_name = 'COMMERCIAL INVOICE'.
wa_doc_chng-expiry_dat = sy-datum + 10.
wa_doc_chng-obj_descr = 'COMMERCIAL INVOICE'.
wa_doc_chng-sensitivty = 'F'.
wa_doc_chng-doc_size = v_lines_txt * 255.
CLEAR i_objpack-transf_bin.
i_objpack-head_start = 1.
i_objpack-head_num = 0.
i_objpack-body_start = 1.
i_objpack-body_num = v_lines_txt.
i_objpack-doc_type = 'RAW'.
APPEND i_objpack.
Attachment
(pdf-Attachment)
i_objpack-transf_bin = 'X'.
i_objpack-head_start = 1.
i_objpack-head_num = 0.
i_objpack-body_start = 1.
DESCRIBE TABLE i_objbin LINES v_lines_bin.
READ TABLE i_objbin INDEX v_lines_bin.
i_objpack-doc_size = v_lines_bin * 255 .
i_objpack-body_num = v_lines_bin.
i_objpack-doc_type = 'PDF'.
i_objpack-obj_name = 'COMMERCIAL INVOICE'.
i_objpack-obj_descr = 'COMMERCIAL INVOICE'.
APPEND i_objpack.
BREAK-POINT.
IF it_adr6[] IS NOT INITIAL.
LOOP AT it_adr6 INTO wa_adr6.
CLEAR i_reclist.
i_reclist-receiver = wa_adr6-smtp_addr.
i_reclist-rec_type = 'U'.
i_reclist-com_type = 'INT'.
APPEND i_reclist.
ENDLOOP.
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = wa_doc_chng
put_in_outbox = 'X'
TABLES
packing_list = i_objpack
object_header = wa_objhead
contents_bin = i_objbin
contents_txt = i_objtxt
receivers = i_reclist.
ENDIF.
The above error I am getting.
Please give your suggestions
Thanks in advanceU can use this code
Reward if useful
REPORT ZMN_PDF_UPLOAD.
data: begin of itab occurs 0,
field(256),
end of itab.
data: dsn(100) value '\usr\sap\DEV\DVEBMGS00\work\testpdf',
length like sy-tabix,
lengthn like sy-tabix.
call function 'GUI_UPLOAD'
exporting
filename = 'c:\temp\test.pdf'
filetype = 'BIN'
importing
filelength = length
tables
data_tab = itab.
open dataset dsn for output in binary mode.
loop at itab.
transfer itab-field to dsn.
endloop.
close dataset dsn.
clear itab.
refresh itab.
*To crosscheck if it went well
open dataset dsn for input in binary mode.
do.
read dataset dsn into itab-field.
if sy-subrc = 0.
append itab.
else.
exit.
endif.
enddo.
call function 'GUI_DOWNLOAD'
exporting
filename = 'c:\temp\testn.pdf'
filetype = 'BIN'
bin_filesize = length
importing
filelength = lengthn
tables
data_tab = itab.
*Or
*Use the TCode
*CG3Z or CG3Y
*for downloading to Application Server. -
Cannot forward one page PDF files from mail app
My earlier topic had incorrect problem report so I've created a new topic.
The problem is i cannot forward one page PDF file from mail apps. I use imap set up for my work email.
Multi page PDFs, photos, docs, numbers, all forward OK for both windows and Mac formats.Update: I hade had a reply from the Good Reader app developer saying this is a known issue even for them. However, they don't know if Apple will fix this or not.
Basically mail app treats all one page PDF as if it's an image and will forward it the same as it would an image. Any non-apple based mail programs will have issues viewing this file.. -
Any tricks to store pdf file generated via jasper to oracle tables.
i need to generate pdf file ..for records in a cursor..
So i use jasper integration kit ... to accomplish the same...
issue is .. i need to press a button and then pdfs file shoudl be generated...and stored in a table as a blob..My process does this..
But since the process can be fired only on condition. on load before header...
The result is i get my pdf file generated and stored in table ..but the page is a blank page..seems like it is some jasper page..
http://127.0.0.1:82/apex/f?p=132:267:3324851978466855::::: The page looks empty...I will not want it to look empty...
i will like after pressing a button immediatley it shows a page processing and when processing is done... it shifts to other page...
I am putting the part of code which generates the pdf file ...any guidance or help shall be appreciated..
So i hope you understood the issue..*Issue is when button is pressed i see a blank page..THough the below process is fired pdf file genrated and stored in oracle tables..as blob.. I will like instead of blank page it displays me some othe page..say like processing and once done it shoudl say processing complete..*
Any guidance will be kindly appreciated..
Thanks paul johny
Below you will see the stored procedure i use..to generate the pdf files...
create or replace procedure lordslave is
cursor c1 is select subscribe_no from subscribers
where subscribe_no > 296;
l_blob BLOB;
l_mime_type VARCHAR2 (100);
begin
for xxx in c1
loop
begin
--xlog ('PRC_GET_REPORT_TUNNEL', 'url (orig):' || 'http://localhost:84/JasperReportsIntegration/report?_repName=test_repFormat=pdf_dataSource=def1_outFilename=tes.txt_repLocale=de_DE,repEncoding=UTF-8');
xlib_jasperreports.set_report_url ('http://192.168.1.3:84/JasperReportsIntegration/report');
xlib_jasperreports.get_report
(p_rep_name => 'subinvx',
p_rep_format => 'pdf',
p_data_source => 'default',
p_rep_locale => 'de_DE',
p_rep_encoding => 'UTF-8',
p_additional_params => 'Psubscribe_no='||390,
p_out_blob => l_blob,
p_out_mime_type => l_mime_type
BLOB_LOADB (mid(),xxx.subscribe_no,'SUBSCRIBERINVOICE','mfilename',l_mime_type,l_blob);
-- release resources
DBMS_LOB.freetemporary (l_blob);
-- stop rendering of APEX page
apex_application.g_unrecoverable_error := TRUE;
EXCEPTION
WHEN OTHERS
THEN
xlog ('PRC_GET_REPORT_TUNNEL', SQLERRM, 'ERROR');
RAISE;
END;
end loop;
end;All you need to do - is that you should use the column data type as Long Raw.Why would you recommend using LONG RAW which has been deprecated in favour of BLOB for years?
You can find a simple example of inserting a file into a BLOB column using JDBC here. The Oracle JDBC docs are also worth a read. Find out more.
Cheers, APC
Blog : http://radiofreetooting.blogspot.com/ -
Save PDF-file on the application server
Hello experts,
I convert my Smartform to a PDF-File. I copied the code from Suresh Kumar Parvathaneni (REPORT zsuresh_test). At first, thank you Suresh Kumar for that!
Now, I would like to save the PDF-File on the application server and not local.
Could you tell me how to do this. Especially, where do I have to put the abap-code in the given code from Suresh Kumar.
I thank you very much for your help in advance.
With kind regards.
gokselinHi,
You can use the OPEN DATASET statment.
Probably you must be having an output table which you are downloading to the local machine.You can use the same and loop at it. and if the OPEN dataset returned sy-subrc 0, use the TRANSFER statment.
Remember the data will be binary for pdf. So you have to open the dataset in binary mode.
regards,
Advait -
How to passw protect my pdf files generated by Adobe Acrobat?
I simply want to passw protect my pdf files generated by Adobe Acrobat. However the option as indicated by the helpdesk is not available in my pdf generator. I am working with apple? Can someone tell me how to pass protect my files?
Can some one help me out here?Hi josr,
You can password protect your files in Adobe Acrobat by choosing File > Properties when you have the PDF open, and clicking the Security tab. Here is a Help topic that goes into detail: Acrobat Help | Securing PDFs with passwords.
If you don't have Acrobat, you're welcome to give it a try! Feel free to download a 30-day trial from http://www.adobe.com/products/acrobat.html.
Best,
Sara -
Download PDF File to SAP Application Server
Hi,
I need to download the PDF file to SAP Application Server. Can any one please help me to Solve this Issue?
Thanks in Advance,
KannanYou can read and upload the file to the PC:
report ztest.
data: begin of itab occurs 0,
field(256),
end of itab.
data: dsn(100) value '/usr/sap/xfr/FIS/testpdf',
length like sy-tabix,
lengthn like sy-tabix.
call function 'GUI_UPLOAD'
exporting
filename = 'c:temptest.pdf'
filetype = 'BIN'
importing
filelength = length
tables
data_tab = itab.
open dataset dsn for output in binary mode.
loop at itab.
transfer itab-field to dsn.
endloop.
close dataset dsn.
clear itab.
refresh itab.
open dataset dsn for input in binary mode.
do.
read dataset dsn into itab-field.
if sy-subrc = 0.
append itab.
else.
exit.
endif.
enddo.
call function 'GUI_DOWNLOAD'
exporting
filename = 'c:temptestn.pdf'
filetype = 'BIN'
bin_filesize = length
importing
filelength = lengthn
tables
data_tab = itab.
Rob -
Problem opening pdf file from an app built by Flash Builder 4.5
problem opening pdf file from an app built by Flash Builder 4.5
The iPad and iPhone have NEVER supported Flash and never will. In fact, Adobe is no longer distributing Flash builds to mobile devices.
Time to move on...
Maybe you are looking for
-
Ok my problem is my computer running windows 7 it will not attempt to connect to iphone. when plugging in it dose nothing as if nothing is going on. my old iphone (iphone 3g) can still connect to computer with the same cord but not the same results w
-
Ok, I bet that this is answered somewhere else in this forum, however, I find it infinately easier to just re-ask and be yelled at and sent a link to read than to have to search this near archive for the answer. My home computer has Windows XP Pro an
-
How to force refresh in iOS 7 Calendar app?
Is there any way to manually initiate a refresh in the Calendar app in iOS 7? (I'm using iCloud to sync my personal and shared calendars with two Macs and two other users.) In the iOS Calendar app, at least between the introduction of iCloud and iOS
-
Have done the recovery discs but HELP!!! Windows could no start because the following file is missing or corrupt: \WINDOWS\system32\config\system No option to repair??? have done a memtest and it passed Its a tecra A2 model number: PTA20E
-
Comparing two dates and adding days to date
Hi, I want to compare two dates(like 2006/10/21 and 2006/11/2),how can i compare these two dates,like which is greater.And if to the second date,i want to add some number of days like 10 days,how can i add so that the date becomes 2006/11/12). Please