Create PDF while close the INDD
Hi,
Can you please some one suggest, how to create the pdf(export pdf) file while closing the indd file automatically. Also, please let me know any support file will create while the indd document opening and closing.
Thanks in Advance
Satish
Thanks for your reply.
Can you help me, how to trigger the script when I am closing the indd file?
Regards
Satish
Similar Messages
-
Error message an error occurred while signing in " when I worked with Create PDF and at the signed
Error message "an error occurred while signing in " when I worked with Create PDF and at the signed in status. Please help so that I can continu my work.
Hi Stacy,
Thank you for your attention.
I have been working with Create PFD under normal procedures including
sign-in and several documents had been finished. However, when continued
creating another document the computer took a long time to pprocess and
finally a mesage appeared: "An error occurred while signing in" and stopped
there. I clicked the OK button and start creating again and the same
message appeared once more. I tried to log off and log in again in no
avail. So I went to the help site and called for help.
Later, I decided to reboot the computer and tried once more. This time it
worked and I continued creating. Thanks.
laozhao39 -
After installing two updates, I cannon create .pdf documents as the window says "Missing PDF Maker Files." I've uninstalled Acrobat and re-installed twice, same problem. How do I correct problem?
Thank you. I googled my problem and got good answers involving making changes to my Office settings - which worked.
Sent via the Samsung GALAXY S® 5, an AT&T 4G LTE smartphone -
Create, write, and close the Spool
Hello everybody,
I have a problem with the spool in one program i have to develop.
In the same program I have to create different lists and transform them into pdf to send by mail. The issue I am facing is to create different entries in the spool with the different lists. I read something about the function Get_print_parameters, but what I need is to open the spool, then write into this spool and close it, because afterwards I will send the email with this attachement. i have to do this several times.
Does anybody know how to do this opening writing and closing??
Regards, and thanks very much
CaletrioYou may use these FMs
RSPO_OPEN_SPOOLREQUEST
RSPO_WRITE_SPOOLREQUEST
RSPO_CLOSE_SPOOLREQUEST
P.S. Please search the forum before posting the query. -
Create pdf attachment to the mail
Hi folks,
My requirement is to attach pdf document to the mail step in workflow programatically and document is on presentation server.
i have tried with SOFM object type, but it is asking for document number , but i could not provide it because it is not in SAP system.
how to acheive this.
Thanks,
janakiram.try this copy and paste is and make changes as required
Enjoy.............
To create pdf from internal table.
Two steps
1. get spool no.
2. create pdf.
1. get spool no.
SELECT *
FROM zwftrack
INTO TABLE it_zwftrack
WHERE wf_id = p_wf_id
AND action = 'FYA'.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING destination = 'LP01' " 'LT50'
copies = 1
list_name = g_rq2name
list_text = 'COMM-PDF NEW-PAGE PRINT ON'
immediately = ' '
release = ' '
new_list_id = 'X'
expiration = g_days
line_size = g_ln_size " 255 ZTG12
line_count = g_ln_count " 65 ZTG12
layout = g_layout " 'X_PAPER'ZTG12
SAP_COVER_PAGE = 'X'
RECEIVER = 'SAP*'
DEPARTMENT = 'System'
SAP_OBJECT = 'RS'
AR_OBJECT = 'TEST'
ARCHIVE_ID = 'XX'
ARCHIVE_INFO = 'III'
ARCHIVE_TEXT = 'Description'
no_dialog = 'X'
IMPORTING out_parameters = g_params
out_archive_parameters = g_arparams
valid = g_valid.
"end of get
NEW-PAGE PRINT ON
NEW-SECTION
NO-TITLE
PARAMETERS g_params
ARCHIVE PARAMETERS g_arparams
NO DIALOG.
***add at top of comments list
WRITE:/ 'Contract Analysis Worksheet', 150 'Current Data ( ', l_date, ' ', l_time, ' )'.
WRITE:/150 'Run # :', wa_zzbedsheet-bdshnum.
WRITE:/ 'Project ID :',g_object_no.
WRITE:/ 'Project :',g_psr_desc.
WRITE:/ 'Profit Center :',g_prctr.
WRITE:/ 'Project Manager :',g_final_abb_contact.
WRITE:/ 'RA key :',g_abgsl.
WRITE:/ 'Customer :',l_cust.
WRITE:/ 'Project Start :',l_proj_start.
SKIP 3.
SORT it_zwftrack BY approver_level.
LOOP AT it_zwftrack INTO wa_zwftrack.
AT FIRST.
WRITE:/ 'Approvers Comments:'.
SKIP 1.
WRITE:/1 'Role', 35 'Approved By', 50 'Signature', 75 'Comments'.
ULINE.
ENDAT.
IF wa_zwftrack IS INITIAL.
SKIP.
ELSE.
PERFORM f_get_name USING wa_zwftrack-approved_by
CHANGING g_final_abb_contact.
WRITE :/ wa_zwftrack-role UNDER 'Role',
g_final_abb_contact UNDER 'Approved By',
wa_zwftrack-signature UNDER 'Signature',
wa_zwftrack-comments UNDER 'Comments'.
ENDIF.
CLEAR: g_final_abb_contact.
insert page break
IF sy-tabix = w_lines .
NEW-PAGE .
w_lines = 2 * w_lines.
ENDIF.
ENDLOOP.
NEW-PAGE PRINT OFF .
CLEAR w_tsp01.
SELECT SINGLE *
FROM tsp01
INTO w_tsp01
WHERE rqowner = sy-uname
AND rq2name = g_rq2name. "'COMM-PDF' .
g_spool_comm = w_tsp01-rqident.
2. create pdf
CLEAR g_lines .
REFRESH it_tab1 .
****get comments page from spool
CALL FUNCTION 'RSPO_RETURN_ABAP_SPOOLJOB'
EXPORTING
rqident = g_spool_comm "spool1
TABLES
buffer = it_tab1
EXCEPTIONS
no_such_job = 1
job_contains_no_data = 2
selection_empty = 3
no_permission = 4
can_not_access = 5
read_error = 6
OTHERS = 8.
IF sy-subrc = 0.
ENDIF.
to record line no for page break .
DESCRIBE TABLE it_tab1 LINES g_lines.
MOVE g_lines TO wa_eof-line .
APPEND wa_eof TO it_eof .
CLEAR g_lines .
APPEND LINES OF it_tab1 TO it_tab.
REFRESH it_tab1 .
SELECT SINGLE spld INTO w_spld FROM usr01 WHERE bname = sy-uname.
SHIFT g_wf_id LEFT DELETING LEADING '0'.
CONCATENATE g_wf_id '-ONEPDF' INTO g_list_name.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING destination = w_spld " 'LT50'
copies = 1
list_name = g_list_name
list_text = 'PM-PDF NEW-PAGE PRINT ON'
immediately = ' '
release = ' '
new_list_id = 'X'
expiration = g_days
line_size = g_ln_size " 255 ZTG12
line_count = g_ln_count " 65 ZTG12
layout = g_layout " 'X_PAPER'ZTG12
SAP_COVER_PAGE = 'X'
RECEIVER = 'SAP*'
DEPARTMENT = 'System'
SAP_OBJECT = 'RS'
AR_OBJECT = 'TEST'
ARCHIVE_ID = 'XX'
ARCHIVE_INFO = 'III'
ARCHIVE_TEXT = 'Description'
no_dialog = 'X'
IMPORTING out_parameters = g_params
out_archive_parameters = g_arparams
valid = g_valid.
NEW-PAGE PRINT ON
NEW-SECTION
NO-TITLE
PARAMETERS g_params
ARCHIVE PARAMETERS g_arparams
NO DIALOG.
w_idx = 1 . " for reading EOF line no .
w_tabix = 0 .
READ TABLE it_eof INTO wa_eof INDEX w_idx .
MOVE wa_eof-line TO g_lines .
w_lines = w_tabix + g_lines .
DATA: w_linestr LIKE sy-tabix . "#EC NEEDED
LOOP AT it_tab INTO wa_tab.
IF wa_tab-line CP 'Current Budget' .
w_linestr = sy-tabix .
ENDIF .
IF wa_tab IS INITIAL OR wa_tab-line CA '?' . " ZTG15
SKIP . " ZTG15
ELSE . " ZTXX
WRITE / wa_tab .
ENDIF . " ZTG15
insert page break
IF sy-tabix = w_lines .
NEW-PAGE .
w_idx = w_idx + 1 .
w_tabix = sy-tabix + w_tabix .
READ TABLE it_eof INTO wa_eof INDEX w_idx .
MOVE wa_eof-line TO g_lines .
w_lines = w_tabix + g_lines .
CLEAR: w_tabix.
ENDIF .
ENDLOOP .
NEW-PAGE PRINT OFF .
CLEAR w_tsp01.
SELECT * INTO TABLE t_tsp01 FROM tsp01
WHERE rqowner = sy-uname
AND rq2name = g_list_name .
IF sy-subrc = 0 .
SORT t_tsp01 BY rqcretime DESCENDING . "RBE24 rqident DESCENDING .
ENDIF .
READ TABLE t_tsp01 INTO W_TSP01 INDEX 1 .
CLEAR w_tsp01.
SELECT SINGLE *
FROM tsp01
INTO w_tsp01
WHERE rqowner = sy-uname
AND rq2name = g_list_name. "'COMM-PDF' .
WHILE g_numbytes = 0 .
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = w_tsp01-rqident "spoolno
no_dialog = ' '
DST_DEVICE =
PDF_DESTINATION =
IMPORTING
pdf_bytecount = g_numbytes
pdf_spoolid = g_pdfspoolid
LIST_PAGECOUNT =
btc_jobname = g_jobname
btc_jobcount = g_jobcount
TABLES
pdf = it_pdf
EXCEPTIONS
err_no_abap_spooljob = 1
err_no_spooljob = 2
err_no_permission = 3
err_conv_not_possible = 4
err_bad_destdevice = 5
user_cancelled = 6
err_spoolerror = 7
err_temseerror = 8
err_btcjob_open_failed = 9
err_btcjob_submit_failed = 10
err_btcjob_close_failed = 11.
ENDWHILE.
**DATA : DATA_TAB TYPE TABLE.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
bin_filesize = g_numbytes
filename = g_lv_file
filetype = 'BIN'
IMPORTING
filelength = g_numbytes
TABLES
data_tab = it_pdf
FIELDNAMES =
EXCEPTIONS
file_write_error = 1
no_batch = 2
gui_refuse_filetransfer = 3
invalid_type = 4
no_authority = 5
unknown_error = 6
header_not_allowed = 7
separator_not_allowed = 8
filesize_not_allowed = 9
header_too_long = 10
dp_error_create = 11
dp_error_send = 12
dp_error_write = 13
unknown_dp_error = 14
access_denied = 15
dp_out_of_memory = 16
disk_full = 17
dp_timeout = 18
file_not_found = 19
dataprovider_exception = 20
control_flush_error = 21
OTHERS = 22
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
report ZTEST12345678.
tables:
tsp01.
*STRUCTURES
parameters:
p_repid like sy-repid, " Report to execute
p_linsz like sy-linsz default 255, " Line size
p_paart like sy-paart default 'X_65_132'. " Paper Format
data:
mstr_print_parms like pri_params,
mc_valid(1) type c,
mi_bytecount type i,
mi_length type i,
mi_rqident like tsp01-rqident.
*INTERNAL TABLES
data:
mtab_pdf like tline occurs 0 with header line,
mc_filename TYPE string.
*----Data for Mail
DATA: OBJPACK LIKE SOPCKLSTI1 OCCURS 2 WITH HEADER LINE.
DATA: OBJHEAD LIKE SOLISTI1 OCCURS 1 WITH HEADER LINE.
DATA: OBJBIN LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
DATA: OBJTXT LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
DATA: RECLIST LIKE SOMLRECI1 OCCURS 5 WITH HEADER LINE.
DATA: DOC_CHNG LIKE SODOCCHGI1.
DATA: TAB_LINES LIKE SY-TABIX.
DATA: V_MAILID(241) TYPE C .
DATA: BEGIN OF DATA_TAB OCCURS 20,
LINE(255),
END OF DATA_TAB.
start-of-selection.
concatenate 'c:\abap\'
p_repid
'.pdf'
into mc_filename.
*Setup the Print Parmaters
call function 'GET_PRINT_PARAMETERS'
exporting
authority = space
copies = '1'
cover_page = space
data_set = space
department = space
destination = space
expiration = '1'
immediately = space
*in_archive_parameters = space
*in_parameters = space
layout = space
mode = space
new_list_id = 'X'
no_dialog = 'X'
user = sy-uname
importing
out_parameters = mstr_print_parms
valid = mc_valid
exceptions
archive_info_not_found = 1
invalid_print_params = 2
invalid_archive_params = 3
others = 4.
*Make sure that a printer destination has been set up
*If this is not done the PDF function module ABENDS
if mstr_print_parms-pdest = space.
mstr_print_parms-pdest = 'LP01'.
endif.
*Explicitly set line width, and output format so that
*the PDF conversion comes out OK
mstr_print_parms-linsz = p_linsz.
mstr_print_parms-paart = p_paart.
submit (p_repid) to sap-spool without spool dynpro
spool parameters mstr_print_parms
via selection-screen
and return.
CALL FUNCTION 'ENQUE_SLEEP'
EXPORTING
seconds = 2.
*Find out what the spool number is that was just created
P_REPID = SY-REPID.
perform get_spool_number using p_repid sy-uname
changing mi_rqident.
*Convert Spool to PDF
call function 'CONVERT_ABAPSPOOLJOB_2_PDF'
exporting
src_spoolid = mi_rqident
no_dialog = space
dst_device = mstr_print_parms-pdest
importing
pdf_bytecount = mi_bytecount
tables
pdf = mtab_pdf
exceptions
err_no_abap_spooljob = 1
err_no_spooljob = 2
err_no_permission = 3
err_conv_not_possible = 4
err_bad_destdevice = 5
user_cancelled = 6
err_spoolerror = 7
err_temseerror = 8
err_btcjob_open_failed = 9
err_btcjob_submit_failed = 10
err_btcjob_close_failed = 11
others = 12.
perform create_mail_data.
PERFORM SEND_MAIL.
*FORM get_spool_number
*Get the most recent spool created by user/report *
*--> F_REPID *
*--> F_UNAME *
*--> F_RQIDENT *
form get_spool_number using f_repid
f_uname changing f_rqident.
data: lc_rq2name like tsp01-rq2name.
concatenate f_repid+0(8)
f_uname+0(3)
into lc_rq2name separated by '_'.
concatenate f_repid+0(9)
f_uname+0(3)
into lc_rq2name.
select * from tsp01 where rq2name = lc_rq2name
order by rqcretime descending.
f_rqident = tsp01-rqident.
exit.
endselect.
if sy-subrc ne 0.
clear f_rqident.
endif.
endform." get_spool_number
**& Form create_mail_data
form create_mail_data.
*Creation of the document to be sent
DOC_CHNG-OBJ_NAME = 'TEST MAIL ATTACHMENTS'.
DOC_CHNG-OBJ_DESCR = 'Test for PDF'.
OBJTXT = 'Contents of mail'.
APPEND OBJTXT.
OBJTXT = 'PDF'.
APPEND OBJTXT.
OBJTXT = 'PDF'.
APPEND OBJTXT.
DESCRIBE TABLE OBJTXT LINES TAB_LINES.
READ TABLE OBJTXT INDEX TAB_LINES.
DOC_CHNG-DOC_SIZE = ( TAB_LINES - 1 ) * 255 + STRLEN( OBJTXT ).
*Creation of the entry for the compressed document
CLEAR OBJPACK-TRANSF_BIN.
OBJPACK-HEAD_START = 1.
OBJPACK-HEAD_NUM = 0.
OBJPACK-BODY_START = 1.
OBJPACK-BODY_NUM = TAB_LINES.
OBJPACK-DOC_TYPE = 'RAW'.
APPEND OBJPACK.
*-DOWNLOADING AND AGAIN UPLOADINGIN BIN FORMAT TO TRANSFER TO OBJBIN
*MC_FILENAME = 'c:\test.doc' .
*--pdf--
*MC_FILENAME = 'c:\test.pdf'.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
BIN_FILESIZE = MI_BYTECOUNT
filename = MC_FILENAME
FILETYPE = 'BIN'
APPEND = ' '
WRITE_FIELD_SEPARATOR = ' '
HEADER = '00'
TRUNC_TRAILING_BLANKS = ' '
WRITE_LF = 'X'
COL_SELECT = ' '
COL_SELECT_MASK = ' '
DAT_MODE = ' '
CONFIRM_OVERWRITE = ' '
NO_AUTH_CHECK = ' '
CODEPAGE = ' '
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
WRITE_BOM = ' '
TRUNC_TRAILING_BLANKS_EOL = 'X'
WK1_N_FORMAT = ' '
WK1_N_SIZE = ' '
WK1_T_FORMAT = ' '
WK1_T_SIZE = ' '
WRITE_LF_AFTER_LAST_LINE = ABAP_TRUE
SHOW_TRANSFER_STATUS = ABAP_TRUE
IMPORTING
FILELENGTH =
tables
data_tab = MTAB_PDF[]
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 FUNCTION 'GUI_DOWNLOAD'
*EXPORTING
*BIN_FILESIZE = MI_BYTECOUNT
*FILENAME = MC_FILENAME
*FILETYPE = 'BIN'
*TABLES
*DATA_TAB = MTAB_PDF
*EXCEPTIONS
*FILE_OPEN_ERROR = 1
*FILE_WRITE_ERROR = 2
*INVALID_FILESIZE = 3
*INVALID_TYPE = 4
*NO_BATCH = 5
*UNKNOWN_ERROR = 6
*INVALID_TABLE_WIDTH = 7
*GUI_REFUSE_FILETRANSFER = 8
*CUSTOMER_ERROR = 9
*OTHERS = 10.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = MC_FILENAME
FILETYPE = 'BIN'
HAS_FIELD_SEPARATOR = ' '
HEADER_LENGTH = 0
READ_BY_LINE = 'X'
DAT_MODE = ' '
CODEPAGE = ' '
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
CHECK_BOM = ' '
VIRUS_SCAN_PROFILE =
NO_AUTH_CHECK = ' '
IMPORTING
FILELENGTH =
HEADER =
tables
data_tab = OBJBIN
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 FUNCTION 'GUI_UPLOAD'
*EXPORTING
*FILENAME = MC_FILENAME
*FILETYPE = 'BIN'
*TABLES
*DATA_TAB = OBJBIN.
*--uncommnet this for pdf--
DESCRIBE TABLE OBJBIN LINES TAB_LINES.
OBJHEAD = 'TEST.pdf'. APPEND OBJHEAD.
*Creation of the entry for the compressed attachment
OBJPACK-TRANSF_BIN = 'X'.
OBJPACK-HEAD_START = 1.
OBJPACK-HEAD_NUM = 1.
OBJPACK-BODY_START = 1.
OBJPACK-BODY_NUM = TAB_LINES.
OBJPACK-DOC_TYPE = 'PDF'.
OBJPACK-OBJ_NAME = 'Testing PDF Attachment'.
OBJPACK-OBJ_DESCR = 'Customes Ageing report PDF Output Attachment'.
OBJPACK-DOC_SIZE = TAB_LINES * 255.
APPEND OBJPACK.
CLEAR V_MAILID.
V_MAILID = <mail id>.
RECLIST-RECEIVER = V_MAILID.
RECLIST-REC_TYPE = 'U'. "B for SAP Inbox
APPEND RECLIST.
endform. " create_mail_data
**& Form SEND_MAIL
form SEND_MAIL.
Sending the document
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
DOCUMENT_DATA = DOC_CHNG
PUT_IN_OUTBOX = 'X'
commit_work = 'X'
TABLES
PACKING_LIST = OBJPACK
OBJECT_HEADER = OBJHEAD
CONTENTS_BIN = OBJBIN
CONTENTS_TXT = OBJTXT
RECEIVERS = RECLIST
EXCEPTIONS
TOO_MANY_RECEIVERS = 1
DOCUMENT_NOT_SENT = 2
OPERATION_NO_AUTHORIZATION = 4
OTHERS = 99.
*EXCEPTION HANDLING
CASE SY-SUBRC.
WHEN 0.
WRITE: / 'Mail sent with attachment'.
WHEN 1.
WRITE: / 'No authorization for sending to the specified number',
'of recipients'.
WHEN 2.
WRITE: / 'Document could not be sent to any recipient'.
WHEN 4.
WRITE: / 'No send authorization'.
WHEN OTHERS.
WRITE: / 'Error occurred while sending'.
ENDCASE.
endform. " SEND_MAIL -
Problem creating PDF file using the Adobe PDF printer
Apologies if I have hit the wrong forum for this issue.
I am using Adode Acrbat 9 PRO version 9.4.6 on a Windows 7 SP1 machine.
I am running an application that presents information on web pages that I need to capture as pdf files. I am using an automation tool so it is limiting my posibilities of accomplishing this task.
I am attempting to use the Adobe PDF printer as the vehicle to create these PDF files but have encountered the following issues
The page is truncated on the right hand side
Only 1 page is created when I was expecting 7
I have specified a file path for the ADOBE PDF Output Folder ... C:\Windows\Temp and
checked the box "Add document information" but I am not given the opportuniy to enter a file name. It is using the file name from the URL
To verify my PDF content I used a different method to create the PDF from the same web page
Right click within the web page and select Convert to Adobe PDF. The pdf file has the full content with no truncation and is 7 pages in total.
Unfortunately I am unable to use this method with my automation tool
Any pointers will be gratefully receivedSome progess
I changed the page orientation to landscape and that removed the truncation. I am not sure why it is not using the "shrink to fit" but for the purposes of this exercise I can live with this solution.
If I click Print Preview I can view all pages and then if I select the Print Icon I get a PDF file containing all pages. This is so bizarre.
So to recap
File > Print > Adobe PDF Printer only creates 1 page
File > Print Preview > Print Document (Alt +P) > Print >Adobe PDF Printer creates 7 pages
I guess this would be a good time to call support to see what they have to say on this topic. -
Creating PDF report in the servlet
We have a requirement of creating PDF report in servlet.
Over all idea of the requirements -
- Servlet request receives input arguments,
- JDO fetches data information,
- need to create form [row and column]
- send response as outputsream with content type as application/pdf
Can any one give suggestions on best way to create a form where row and column consist of static text and values fetched from the db?
There are third party libraries available for creating text table that can be used to design a form in the form of table cells. We do not want to use third party libraries and have dependencies.
Please let me know, if you need additional info.
TIA.Don't want to use third-party libraries? Then you'll have to write your own code that outputs data according to the PDF specifications. You can download them from Adobe:
http://partners.adobe.com/public/developer/pdf/index_reference.html
Personally I would recommend the third-party libraries as this is a very large wheel to reinvent. -
Record locks created when user closes the Browser and not the Web Form
Hi. We sometimes encounter the issue where a user updates a record, locking the record on the table, but then they unexpectedly closes the browser without saving by clicking the X in the upper-right of the browser window. Then when another user comes along and attempts to edit that record they get the message Unable to Reserve Record. The orphaned record lock eventually does seem to clear itself out, but that can often take 15-20 minutes.
Is there any way to speed this up? Or to pragmatically keep this from occurring? Either on the database side or with some code in a particular application?
Please let me know your thoughts. Thanks in advance.If a user closes the browser window the forms runtime on the application server holding the locks is in most cases still up and running. The FORMS_TIMEOUT controls on how long a forms runtime on the server is up and running without the client applet not sending a heartbeat (See MOS note 549735.1). By default this is 15 minutes which would explain your locks being held 15 minutes.
You could decrease the FORMS_TIMEOUT in the default.env, so the forms runtimes get cleaned earlier and thus the locks get released earlier.
Note that if you have blocking client_hostcalls with webutil this might be a problem, as it prevents the forms applet from sending the heartbeat and after the FORMS_TIMEOUT passed while the forms applet is blocked the forms runtime on the server gets closed.
cheers -
Can CF8 create pdf's on the fly?
For example I want to create pdf's that render different information based on the user.
I have a 2 page set pdf that all users will see, but I want the info that populates the right column on first page to be dynamic based on the user.
Only the right column on the first page is dynamic and is based on the user , everything else would be the same.
Its kind of like using a cfinclude on a regular cf page.
Does this same kind of logic apply to creating PDF's?Yes, CF 8 has several functions that allow for the dynamic creation of PDF documents. The documentation had all the details.
Manipulating PDF Forms in ColdFusion
http://livedocs.adobe.com/coldfusion/8/htmldocs/formsPDF_01.html#130281
Assembling PDF Documents
http://livedocs.adobe.com/coldfusion/8/htmldocs/cfpdf_01.html#160527
Also here is a nice Blog series that discuess some of the features:
ColdFusion 8: Working with PDFs (Part 1) (July 9, 2007)
ColdFusion 8: Working with PDFs (Part 2) (July 10, 2007)
ColdFusion 8: Working with PDFs - A Problem (July 12, 2007)
ColdFusion 8: Working with PDFs (Part 3) (July 13, 2007)
ColdFusion 8: Working with PDFs (Part 4) (July 13, 2007)
ColdFusion 8: Working with PDFs (Part 5) (July 17, 2007)
ColdFusion 8: Working with PDFs (Part 6) (July 21, 2007)
ColdFusion 8: Working with PDFs (Part 7) (July 24, 2007)
ColdFusion 8: Working with PDFs (Part 8) (July 30, 2007) -
While creating pdf from html, the alignment is not proper
Hi,
In my application, I am creating a pdf report from html using (using Generate pdf 1.1 - HTML URL To PDF activity) which contains certain images and descriptions.
But, while generating pdf the alignment is not proper. In the HTML there is no paging, but in the output pdf the image div is getting broken when new pages are generated.
Some blank areas are coming the report.
Actually I need an exact replica of the HTML as a pdf, with paging.
Thank you in advance.What is the LiveCycle version?
Is it possible for you to share an example(somewhere on public file sharing sites)? -
Creating PDF File from the browser
I need to create a PDF file from any browser and add more data to the PDF.. My partner is running WIN 8 and IE10. He can do this.
I'm running WIN 7. Is this IE or Windows? Do I need a plugin that I don't have on the Win 7 box?It's actually the right answer given I didn't have the information about you having CS5. Since this is the forum for Adobe Reader, you are in the wrong forum.
Acrobat forum -
When creating PDFs from WORD 2010 I cannot get the TOC heading entries as hyperlinks
When creating PDFs from WORD 2010 I cannot get the TOC heading entries as hyperlinks. I used to be able to do this in WORD 2003. I tried to create a PDF from Acrobat by selecting File > Create PDF >navigate to the WORD file > select three checkboxes >
Any help with getting the TOC heading entries as hyperlinks?Try to do it from Word using the ribbon.
-
Error in SmartForm to PDF while Saving with Preview option.
Hi,
I have created a report to convert Smartform to PDF.
I want the user to Preview data, if user is interested, then they can save the file.
When user clicks the Back button in SmartForm Print Preview, user can select the path of PDF file to save the data.
My code works fine, if Preview is disabled.
In the sub-routine createpdffile, I am getting error while creating PDF file.
The program works fine, if I disable the preview option i.e. if I uncomment
cparam-getotf = 'X'.
How can I have the both options in my report?
1) Preview SmartForm.
2) Save the SmartForm as PDF.
Regards,
Vikas
DATA:
cparam TYPE ssfctrlop,
outop TYPE ssfcompop,
* fm_name TYPE rs38l_fnam,
* my_tabix TYPE sy-tabix,
file_size TYPE i,
bin_filesize TYPE i,
s_filename TYPE string.
DATA:
tab_otf_data TYPE ssfcrescl,
* tab_otf_data TYPE itcoo OCCURS 0 WITH HEADER LINE,
pdf_tab LIKE tline OCCURS 0 WITH HEADER LINE,
tab_otf_final TYPE itcoo OCCURS 0 WITH HEADER LINE,
it_ekpo TYPE STANDARD TABLE OF ekpo WITH HEADER LINE.
* it_docs TYPE STANDARD TABLE OF docs.
START-OF-SELECTION.
PERFORM fetchdata.
***************** suppressing the dialog box****************************
outop-tddest = 'LP01'.
cparam-no_dialog = 'X'.
cparam-preview = 'X'.
* cparam-getotf = 'X'.
END-OF-SELECTION.
PERFORM callsmartform.
tab_otf_final[] = tab_otf_data-otfdata[].
PERFORM createpdffile.
PERFORM getfilename.
PERFORM savepdffile.
*& Form FetchData
FORM fetchdata .
SELECT * FROM ekpo INTO CORRESPONDING FIELDS OF TABLE it_ekpo
WHERE ebeln > '4500009071' AND ebeln < '4500009073' .
ENDFORM. " FetchData
*& Form CallSmartForm
FORM callsmartform .
CALL FUNCTION '/1BCDWB/SF00000234'
EXPORTING
control_parameters = cparam
output_options = outop
user_settings = space
IMPORTING
job_output_info = tab_otf_data
TABLES
t_ekpo = it_ekpo
* EXCEPTIONS
IF sy-subrc <> 0.
MESSAGE 'Error in Calling Smart Form ' TYPE 'I'.
ENDIF.
ENDFORM. " CallSmartForm
*& Form CreatePDFFile
* text
FORM createpdffile .
****removing the initial and final markers from the OTF data**********
* DELETE tab_otf_data-otfdata WHERE tdprintcom = '//'.
* READ TABLE tab_otf_final WITH KEY tdprintcom = 'EP'.
* my_tabix = sy-tabix + 1.
******** appending the modified OTF table to the final OTF table****
* INSERT LINES OF tab_otf_data-otfdata INTO tab_otf_final INDEX my_tabix
************ converting OTF data into pdf data**************************
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format = 'PDF'
max_linewidth = 132
IMPORTING
bin_filesize = bin_filesize
* BIN_FILE =
TABLES
otf = tab_otf_final
lines = pdf_tab
EXCEPTIONS
OTHERS = 5
IF sy-subrc <> 0.
MESSAGE 'Error in Creating PDF File ' TYPE 'I'.
ENDIF.
ENDFORM. " CreatePDFFile
*& Form SavePDFFile
FORM savepdffile .
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
bin_filesize = bin_filesize
filename = s_filename
filetype = 'BIN'
IMPORTING
filelength = file_size
TABLES
data_tab = pdf_tab
EXCEPTIONS
OTHERS = 22
IF sy-subrc <> 0.
MESSAGE 'Error in Saving PDF File ' TYPE 'I'.
ENDIF.
ENDFORM. " SavePDFFile
*& Form GetFileName
FORM getfilename .
DATA:
v_name TYPE string,
v_path TYPE string,
v_fullpath TYPE string,
v_filter TYPE string,
v_uact TYPE i,
v_guiobj TYPE REF TO cl_gui_frontend_services.
* v_filename TYPE string.
CONCATENATE 'smrt' '.pdf' INTO v_name.
CREATE OBJECT v_guiobj.
CALL METHOD v_guiobj->file_save_dialog
EXPORTING
default_extension = 'pdf'
default_file_name = v_name
file_filter = v_filter
CHANGING
filename = v_name
path = v_path
fullpath = v_fullpath
user_action = v_uact.
IF v_uact = v_guiobj->action_cancel.
EXIT.
ENDIF.
MOVE v_fullpath TO s_filename.
ENDFORM. " GetFileNameI think the excerpt and link below is the why, but the page talks about server code and not javascript. I guessing that this is why blank pages work, but not wiki pages. Can anyone verify this?
The following are general rules for using server-side code on a site page.
If the page is uncustomized, server-side code is supported on the page.
If the page is customized, server-side code does not run, and the page does not render. This includes the code-behind for the page itself.
http://msdn.microsoft.com/en-us/library/office/aa979592(v=office.14).aspx -
Can't create PDF from most MS Office files, or combine
After behaving nicely for months, Acrobat suddenly won't create PDFs, either from the Acrobat menu or (for most) from right-clicking in Explorer. If I try File> Create PDF> From File, the dialog says it's looking for 'all supported formats' but doesn't show any of the files in the folder (not even .TXTs). It'll create a PDF from the right-click menu in Explorer, for only a very a few file types (for example, .docx but not .doc), and it won't do a Combine Files, either from Explorer or from the program, for any filetypes (says 'cannot convert file' on all filetypes).
This worked fine up til today and I have the same setup at work (AA 9 Pro and Office 2010) where it works fine. Tried doing a 'Repair' but no change. Starting to panic here. What went south? Thanks for any clues!I said to print as a check, not to forget PDF Maker. The print is a temporary work around while you resolve the issue, partiuclarly if you are under time pressure. With versions before AA9, PDF Maker was simply a front end for the printer and when the printer was checked things might fail. So you get some trouble shooting of where the problem is. If you do not want to troubleshoot to see if everything is broken, that is fine.
The updates and repairs are other steps to take. A reinstall is typically a last resort and should include deletion of the Acrobat folder and running a cleaner on the registry after the uninstall.
Generally, if the PDF Maker in WORD does not work, then none of the other options to right click and create a PDF or creating a PDF directly in WORD will not work either. The whole point is to trace down to what is the major problem. Often folks have problems because the PDF Maker is not being recognized in WORD and has to be activated, but you have the icon and that suggests things should work.
Your next step is to check the job settings file. Be sure you have access to the job settings file. You will usually get an error message if this access is denied for some reason and posting the error is helpful. -
How to upload the pdf file to the next view?....urgent
Hi Experts,
I need to upload the pdf file( a interactive form ) using the fileupload element in the A_view and the pdf file can be displayed in the b_view.
But I don't know how to complete the function?
Action:
0. Create a adobe form (c_form)in the R/3 using sfp with a inputfield.
1. Create a adobe interactive form (A_interactive_form)in the view(display_view) of the WDA for abap.
2. Create a context attribute(upload) in the display_view.
3. Bind the c_form to the A_interactive_form, so that the data can be transfered to the c_form.
4. Bind the "pdfSourth" property to context attribute "upload" in the A_interactive_form.
4. Type code in the WDA for abap for setting data("old") to the context.
5. Active the WDA and run the WDA.
6. In the IE, the interactive form is displayed with the value "old" in the field. Save the pdf form as "test.pdf" and close the IE.
7. Open the test.pdf, and type the inputfield "new" in the form, and save the test.pdf.
8. Create a context node(Pdfsourth) in the component controller, and create a attribute("upload") that type is xstring in the Pdfsourth.
9. Create a view(C_view), mapping the context node(Pdfsourth) in the component controller.
10. Create a fileupload element in the C_view, and the "data" property is binded the "upload" attribute in the context node(Pdfsourth).
11. Create a button(Display_form) and create the action with the outplug for upload the pdf file(test.pdf).
12. Change the window and set the C_view as default view, and set the Navigation link from the C_view to B_view.
13. Type code in the wddoinit method in the display_view for transfering the test.pdf file.
method WDDOINIT .
DATA lo_componentcontroller TYPE REF TO ig_componentcontroller .
DATA upload TYPE xstring.
lo_componentcontroller = wd_this->get_componentcontroller_ctr( ).
lo_componentcontroller->getupload(
IMPORTING
upload = upload " xstring
DATA lo_nd_pdfsourch TYPE REF TO if_wd_context_node.
DATA lo_el_pdfsourch TYPE REF TO if_wd_context_element.
DATA ls_pdfsourch TYPE wd_this->element_pdfsourch.
navigate from <CONTEXT> to <PDFSOURCH> via lead selection
lo_nd_pdfsourch = wd_context->get_child_node( name = wd_this->wdctx_pdfsourch ).
get element via lead selection
lo_el_pdfsourch = lo_nd_pdfsourch->get_element( ).
get single attribute
lo_el_pdfsourch->set_attribute(
EXPORTING
name = `UPLOAD`
value = upload ).
endmethod.
15. Active the WDA and run the WDA.
In the fileupload of the C_view, I select the test.pdf from my local machine. and click the button(Display_form), the display_view is displayed with the A_interactive_form.
But in the A_interactive_form, the value "old" is in the field in the form rather than "new".
I hope to display the test.pdf in the A_interactive_form. I don't know how to change my code or configuration?
Do you give some example or some hint for this problem ?
Thanks & Regards,
TaoNow, The problem has been solved.Thanks a lot.
Maybe you are looking for
-
Disk utility can't repair external hard drive
A couple months back, I had to get a whole new hard drive case for my external because the power cord broke. Anyway, It's worked fine until now... The hard drive doesn't show up with the other volumes. It does show up on Disk Utility. When I try to r
-
How do i connect my iphone to my wndr3400 wireless router
I dont know how to connect my iphone to my wndr3400 Netgear wireless router. do i have to add the phone to my homegroup? Thanks
-
Our system is set up to send a lot of XML messages to a JMS topic on WL8.1. I have an MDB listening to the topic and a couple of stateless session beans that get invoked by the MDB. The rate is something on the order of 10/sec(moderately sized xml me
-
I accidentally moved all my iPhoto events onto one. I have a recent backup. How do I go about recovering my events?
-
Events Photos Not Showing Descending Like iPhoto
Since updating to 4.2 on my iPad, now my Events in the Photos app are showing in Ascending order vs Descending which is how I have them set up in iPhoto. I have tried to stop syncing Photos then re-syncing but nothing is working. Is this a 4.2 bug?