Error message opening secure PDF file
I bought a secure water marked PDF file and am unable to open it on my computer. I get an error message saying, " There was an error processing a page. Wrong operand type." I'm able to download the file and open it on my Android cell phone, but if I copy the same file to my computer or download it directly from the website I get this error message when I try to open it. I tried uninstalling and reinstalling Acrobat reader, but I still get this same problem. Does anyone have any idea of how to fix this? I can open other PDF files, just not that one. I even tried using the repair Adobe reader menu option and still get the same problem.
Sounds like pdf file is corrupt. Reader on your computer may be less tolerant of corrupt pdf files, since a corrupt pdf file can be used as a vector for a virus or malware attack.
Similar Messages
-
Hi
I am unable to open the link in the secure pdf file after entering the password. It says to double click the link to view the content in it but nothing happens when I double click it . Please help.Hold the Control key and click it. It should open in a browser window... or pop up a warning about Reader trying to connect to the internet. Click OK and it should connect.
If it doesn't, the link is "broken" and there's NOTHING anyone here can do about that. ONLY the author can fix the link. -
Blackened page and dialog error after opening a PDF file
Hello,
I have an Acrobat Pro. 8.1 that I had installed in to Win. Vista. After reformatting my system and installing Win. 7 ultimate, I installed it again. I also have Adobe Reader 9.0 on this system.
Problem is when I click and open a PDF file, it opens it in completely Black page and after a few second Black page goes away and following dialog is display and when I click on Close program on this dialog page the application does not give solution and goes completely away.
Adobe Acrobat 8.1 has stopped working
A problem caused that program to stop working correctly.
Windows will close the program and notify you if a solution is available.
With a Close program below it.
I can not scan with it either where as I could all the above in Win Vista. What could be wrong?
When I generate System Report if generates the following:
Regards
Jeff P.
Available Physical Memory: 4194303 KB
Available Virtual Memory: 1818664 KB
BIOS Version: DELL - 20090605
Default Browser: C:\Program Files (x86)\Internet Explorer\iexplore.exe
Version: 8.00.7600.16385 (win7_rtm.090713-1255)
Creation Date: 2009/07/13
Creation Time: 4:43:32 PM
Default Mail: Microsoft Office Outlook
mapi32.dll
Version: 1.0.2536.0 (win7_rtm.090713-1255)
Creation Date: 2009/07/13
Creation Time: 5:12:29 PM
Graphics Card: ATI Radeon HD 4670
Version: 8.14.10.678
Check: Not Supported
Installed Acrobat: C:\Program Files (x86)\Adobe\Acrobat 8.0\Acrobat\Acrobat.exe
Version: 8.1.0.2007051100
Creation Date: 2010/06/22
Creation Time: 1:48:16 PM
Installed Acrobat: C:\Program Files (x86)\Adobe\Reader 9.0\Reader\AcroRd32.exe
Version: 9.3.2.163
Creation Date: 2010/04/03
Creation Time: 10:57:52 PM
Locale: English (United States)
Monitor:
Name: ATI Radeon HD 4670
Resolution: 1920 x 1080 x 60
Bits per pixel: 32
OS Manufacturer: Microsoft Corporation
OS Name: Microsoft Windows Vista
OS Version: 6.1.7600
Page File Space: 4194303 KB
Processor: Intel64 Family 6 Model 26 Stepping 5 GenuineIntel ~2660 Mhz
System Name: BAHRAMROOM-PC
Temporary Directory: C:\Users\Bahram\AppData\Local\Temp\
Time Zone: Pacific Standard Time
Total Physical Memory: 4194303 KB
Total Virtual Memory: 2097024 KB
User Name: Bahram
Windows Directory: C:\Windows
Installed plug-ins:
C:\Program Files (x86)\Adobe\Acrobat 8.0\Acrobat\plug_ins\ADBC.api
Version: 8.0.0.2006102300
Creation Date: 2006/10/23
Creation Time: 1:09:30 AM
C:\Program Files (x86)\Adobe\Acrobat 8.0\Acrobat\plug_ins\Accessibility.api
Version: 8.1.0.2007051100
Creation Date: 2010/06/22
Creation Time: 1:48:28 PM
C:\Program Files (x86)\Adobe\Acrobat 8.0\Acrobat\plug_ins\AcroForm.api
Version: 8.1.3.2008101500
Creation Date: 2010/06/22
Creation Time: 1:48:27 PM
C:\Program Files (x86)\Adobe\Acrobat 8.0\Acrobat\plug_ins\Annots.api
Version: 8.1.3.2008101500
Creation Date: 2010/06/22
Creation Time: 1:48:31 PM
C:\Program Files (x86)\Adobe\Acrobat 8.0\Acrobat\plug_ins\Catalog.api
Version: 8.1.0.2007051100
Creation Date: 2010/06/22
Creation Time: 1:48:33 PM
C:\Program Files (x86)\Adobe\Acrobat 8.0\Acrobat\plug_ins\Checkers.api
Version: 8.1.0.2007051100
Creation Date: 2010/06/22
Creation Time: 1:48:31 PM
C:\Program Files (x86)\Adobe\Acrobat 8.0\Acrobat\plug_ins\DVA.api
Version: 8.0.0.2006102300
Creation Date: 2006/10/23
Creation Time: 1:10:52 AM
C:\Program Files (x86)\Adobe\Acrobat 8.0\Acrobat\plug_ins\DigSig.api
Version: 8.1.3.2008101500
Creation Date: 2010/06/22
Creation Time: 1:48:27 PM
C:\Program Files (x86)\Adobe\Acrobat 8.0\Acrobat\plug_ins\DistillerPI.api
Version: 8.1.0.2007051100
Creation Date: 2010/06/22
Creation Time: 1:48:27 PM
C:\Program Files (x86)\Adobe\Acrobat 8.0\Acrobat\plug_ins\EWH32.api
Version: 8.1.3.2008101500
Creation Date: 2010/06/22
Creation Time: 1:48:31 PM
C:\Program Files (x86)\Adobe\Acrobat 8.0\Acrobat\plug_ins\Editor.api
Version: 8.1.0.2007051100
Creation Date: 2010/06/22
Creation Time: 1:48:32 PM
C:\Program Files (x86)\Adobe\Acrobat 8.0\Acrobat\plug_ins\Escript.api
Version: 8.1.3.2008101500
Creation Date: 2010/06/22
Creation Time: 1:48:42 PM
C:\Program Files (x86)\Adobe\Acrobat 8.0\Acrobat\plug_ins\HLS.api
Version: 8.0.0.2006102300
Creation Date: 2006/10/23
Creation Time: 1:10:22 AM
C:\Program Files (x86)\Adobe\Acrobat 8.0\Acrobat\plug_ins\HTML2PDF.api
Version: 8.1.0.2007051100
Creation Date: 2010/06/22
Creation Time: 1:48:31 PM
C:\Program Files (x86)\Adobe\Acrobat 8.0\Acrobat\plug_ins\IA32.api
Version: 8.1.3.2008101500
Creation Date: 2010/06/22
Creation Time: 1:48:30 PM
C:\Program Files (x86)\Adobe\Acrobat 8.0\Acrobat\plug_ins\ImageConversion.api
Version: 8.1.2.2008011100
Creation Date: 2010/06/22
Creation Time: 1:48:27 PM
C:\Program Files (x86)\Adobe\Acrobat 8.0\Acrobat\plug_ins\ImageViewer.API
Version: 8.0.0.2006102300
Creation Date: 2006/10/23
Creation Time: 1:10:36 AM
C:\Program Files (x86)\Adobe\Acrobat 8.0\Acrobat\plug_ins\InDesignPI.api
Version: 8.1.0.2007051100
Creation Date: 2010/06/22
Creation Time: 1:48:33 PM
C:\Program Files (x86)\Adobe\Acrobat 8.0\Acrobat\plug_ins\JDFProdDef.api
Version: 8.1.0.2007051100
Creation Date: 2010/06/22
Creation Time: 1:48:33 PM
C:\Program Files (x86)\Adobe\Acrobat 8.0\Acrobat\plug_ins\MakeAccessible.api
Version: 8.1.0.2007051100
Creation Date: 2010/06/22
Creation Time: 1:48:30 PM
C:\Program Files (x86)\Adobe\Acrobat 8.0\Acrobat\plug_ins\Multimedia.api
Version: 8.1.0.2007051100
Creation Date: 2010/06/22
Creation Time: 1:48:26 PM
C:\Program Files (x86)\Adobe\Acrobat 8.0\Acrobat\plug_ins\PDDom.api
Version: 8.0.0.2006102300
Creation Date: 2006/10/23
Creation Time: 1:19:38 AM
C:\Program Files (x86)\Adobe\Acrobat 8.0\Acrobat\plug_ins\PPKLite.api
Version: 8.1.3.0
Creation Date: 2010/06/22
Creation Time: 1:48:30 PM
C:\Program Files (x86)\Adobe\Acrobat 8.0\Acrobat\plug_ins\PaperCapture.api
Version: 8.1.2.2008011100
Creation Date: 2010/06/22
Creation Time: 1:48:20 PM
C:\Program Files (x86)\Adobe\Acrobat 8.0\Acrobat\plug_ins\Preflight.api
Version: 8.1.0 (241)
Creation Date: 2010/06/22
Creation Time: 1:48:26 PM
C:\Program Files (x86)\Adobe\Acrobat 8.0\Acrobat\plug_ins\ReadOutLoud.api
Version: 8.1.0.2007051100
Creation Date: 2010/06/22
Creation Time: 1:48:32 PM
C:\Program Files (x86)\Adobe\Acrobat 8.0\Acrobat\plug_ins\SaveAsRTF.api
Version: 8.1.0.2007051100
Creation Date: 2010/06/22
Creation Time: 1:48:29 PM
C:\Program Files (x86)\Adobe\Acrobat 8.0\Acrobat\plug_ins\SaveAsXML.api
Version: 8.0.0.2006102300
Creation Date: 2006/10/23
Creation Time: 1:20:30 AM
C:\Program Files (x86)\Adobe\Acrobat 8.0\Acrobat\plug_ins\Scan.api
Version: 8.1.0.2007051100
Creation Date: 2010/06/22
Creation Time: 1:48:32 PM
C:\Program Files (x86)\Adobe\Acrobat 8.0\Acrobat\plug_ins\Search.api
Version: 8.1.0.2007051100
Creation Date: 2010/06/22
Creation Time: 1:48:33 PM
C:\Program Files (x86)\Adobe\Acrobat 8.0\Acrobat\plug_ins\Search5.api
Version: 8.1.0.2007051100
Creation Date: 2010/06/22
Creation Time: 1:48:33 PM
C:\Program Files (x86)\Adobe\Acrobat 8.0\Acrobat\plug_ins\SendMail.api
Version: 8.1.0.2007051100
Creation Date: 2010/06/22
Creation Time: 1:48:29 PM
C:\Program Files (x86)\Adobe\Acrobat 8.0\Acrobat\plug_ins\Spelling.api
Version: 8.1.0.2007051100
Creation Date: 2010/06/22
Creation Time: 1:48:26 PM
C:\Program Files (x86)\Adobe\Acrobat 8.0\Acrobat\plug_ins\TablePicker.api
Version: 8.1.0.2007051100
Creation Date: 2010/06/22
Creation Time: 1:48:26 PM
C:\Program Files (x86)\Adobe\Acrobat 8.0\Acrobat\plug_ins\TouchUp.api
Version: 8.1.0.2007051100
Creation Date: 2010/06/22
Creation Time: 1:48:29 PM
C:\Program Files (x86)\Adobe\Acrobat 8.0\Acrobat\plug_ins\Updater.api
Version: 8.1.0.2007051100
Creation Date: 2010/06/22
Creation Time: 1:48:29 PM
C:\Program Files (x86)\Adobe\Acrobat 8.0\Acrobat\plug_ins\WebPDF.api
Version: 8.0.0.2006102300
Creation Date: 2006/10/23
Creation Time: 1:12:00 AM
C:\Program Files (x86)\Adobe\Acrobat 8.0\Acrobat\plug_ins\XPS2PDF.api
Version: 8.1.0.2007051100
Creation Date: 2010/06/22
Creation Time: 1:48:19 PM
C:\Program Files (x86)\Adobe\Acrobat 8.0\Acrobat\plug_ins\eBook.api
Version: 8.1.0.2007051100
Creation Date: 2010/06/22
Creation Time: 1:48:32 PM
C:\Program Files (x86)\Adobe\Acrobat 8.0\Acrobat\plug_ins\reflow.api
Version: 8.1.0.2007051100
Creation Date: 2010/06/22
Creation Time: 1:48:29 PM
C:\Program Files (x86)\Adobe\Acrobat 8.0\Acrobat\plug_ins\weblink.api
Version: 8.1.3.2008101500
Creation Date: 2010/06/22
Creation Time: 1:48:28 PMThere were documents available in the knowledgeable that I no longer have the urls for. I have had communication with Adobe Acrobat support personnel that have made the same statements. I do not have the habit of asking official Adobe tech support people to prove their statements by providing documentation. I have also seen Adobe employees give presentations on computers that have had both installed. When they were asked about the incompatibility, they did say the equivalent of phooey. However, enough people on this forum have had their problems disappear when they have removed one of the two programs that I feel comfortable giving that advice. Yes some people have no problems running both until one of the programs or a system component gets updated and then things stop working. My advice is not to have both on the same computer. When two programs share system calls and can fight over who gets to handle the call it makes sense that it can cause a problem. It doesn't make a difference if it is Reader and Acrobat or any two other programs you run. If you are not having a problem with running both GREAT. However, if you are running both and have a problem, it is a simple step to eliminate one and see if the problem disappears.
-
Errors when opening any PDF file
Can't find a bytecode file to load.
InitializeFormsTrackerJS is not defined
1:App:Init
ReferenceError: InitializeFormsTrackerJS is not defined
1:App:Init
From the Javascript console I get the above whenever I open any PDF file from Acrobat XI Pro.
I'm at version 11.0.7.
Where is the source of this problem ?
A search for InitializeFormsTrackerJS shows no hits in the Javascript folder.The folder is Acrobat\Javascripts
Repair your Acrobat installation. -
"Macros in this project are disabled..." error message when creating PDF files
The following error occurs when creating a PDF file using a document that was created from a MS Word 2007 templates.
"Macros in this project are disabled..."
The security settings are set appropriately - it's not that. I have done everything I can think of including asking Microsoft; they say it's not them. It may not be, but I do not know how to get around it. It did not happen before upgrading my templates to the Office 2007 format.
Has this happened to anyone else? There is no coding within th etemplates regartding PDFs. We are using Adobe Professional X. The error only occurs when we use Adobe Pro X.
One thing I just noticed, our templates get the following message when we go to save as a PDF using Adobe:
Acrobat PDFMAker needs to save the file before continuing. Do you want PDFMaker to save the file and continue?Does it work the first time after you delete your Normal.dotm file? You may be running into the same issue that is detailed in this post Unable to open document. Please check to see if you have read permission for the above file.
-
Error while opening a pdf file.
Hi All,
I have Adobe Reader 10.1.3 installed on my system.
I am getting the following error : "Adobe Reader could not open 'abc.pdf' because it is either not a supported file type or because the file has been damaged(for example, it was sent as an email attachment and wasn't correctly decoded)". This error is coming at random, i.e. if I open a file at one time, it will open without any problem, but at another time the same file gives this problem. Could anyone please tell me as to why this is happening and how to resolve this?This message occurs if a PDF file is damaged, either during downloading from a website, or during transport as an email attachment.
Are you getting this error for a file that is stored on your local HD? For this to occur at random, as you write, I can only imagine that the disk sector where it is stored is damaged.
Can you run a disk diagnostics, e.g. CHKDSK on Windows? -
Error in opening of Pdf file attachment
hi,
i am sending pdf file as an attachment to mail recipient, after receiving that pdf attachment when the user tries to open that attachment he is getting the following error message.
*"Adobe reader could not open file because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email and wasn't correctly decoded"*
Please give me any suggestions to over come this error.
<REMOVED BY MODERATOR>
Edited by: Alvaro Tejada Galindo on Feb 15, 2008 3:13 PMHi
can you compare your code with attached code , and do required changes if any thing needed
FORM sub_generate_tr_report .
* Internal table declarations
DATA lit_mseg TYPE STANDARD TABLE OF mseg INITIAL SIZE 0.
DATA lit_temp TYPE STANDARD TABLE OF gty_gr_creat INITIAL SIZE 0.
DATA lit_otf TYPE itcoo OCCURS 0 WITH HEADER LINE.
DATA lit_tline TYPE TABLE OF tline WITH HEADER LINE.
DATA lit_objtxt TYPE STANDARD TABLE OF solisti1 INITIAL SIZE 0.
DATA lit_objpack TYPE STANDARD TABLE OF sopcklsti1 INITIAL SIZE 0.
DATA lit_objbin TYPE STANDARD TABLE OF solisti1 INITIAL SIZE 0.
DATA lit_receiver TYPE STANDARD TABLE OF somlreci1 INITIAL SIZE 0.
* Workarea declarations
DATA lwa_ctrlop TYPE ssfctrlop .
DATA lwa_compop TYPE ssfcompop .
DATA lwa_return TYPE ssfcrescl .
DATA lwa_tline TYPE tline .
DATA lwa_objtxt TYPE solisti1 .
DATA lwa_objpack TYPE sopcklsti1.
DATA lwa_doc_data TYPE sodocchgi1.
DATA lwa_objbin TYPE solisti1 .
DATA lwa_receiver TYPE somlreci1 .
DATA lwa_temp TYPE gty_gr_creat.
* Variable declarations
DATA lv_form_name TYPE tdsfname VALUE 'ZZ_PTS446_MASTER_TR_REPORT'.
DATA lv_dlist TYPE so_obj_nam VALUE 'ZPTS446'.
DATA lv_func_mod TYPE rs38l_fnam .
DATA lv_len_in LIKE sood-objlen.
DATA lv_time TYPE syuzeit .
DATA lv_time2 TYPE char8 .
DATA lv_date2 TYPE char10 .
DATA lv_info TYPE so_text255 .
DATA lv_lines TYPE i .
DATA lv_buffer TYPE string .
* Constants declarations
CONSTANTS lc_x TYPE char1 VALUE 'X' .
CONSTANTS lc_c TYPE so_escape VALUE 'C' .
CONSTANTS lc_locl TYPE rspopname VALUE 'LOCL' .
CONSTANTS lc_printer TYPE tddevice VALUE 'PRINTER'.
CONSTANTS lc_raw TYPE so_obj_tp VALUE 'RAW' .
CONSTANTS lc_pdf TYPE so_obj_tp VALUE 'PDF' .
CONSTANTS lc_colon TYPE char1 VALUE ':' .
CONSTANTS lc_slash TYPE char1 VALUE '/' .
CONSTANTS lc_int TYPE char3 VALUE 'INT' .
* Moving record from GIT_GR_CREAT to GIT_TEMP internal table
lit_temp[] = git_gr_creat[].
* Delete record from internal table GIT_TEMP, where STAT is not initial
* DELETE lit_temp WHERE NOT stat IS INITIAL.
DELETE lit_temp WHERE stat EQ 'X'.
DELETE lit_temp WHERE stat EQ 'Q'.
* CLEAR lwa_temp.
* LOOP AT lit_temp INTO lwa_temp.
* IF lwa_temp-stat EQ 'X'
* OR lwa_temp-stat EQ 'Q'.
* DELETE lit_temp FROM lwa_temp.
* ENDIF.
* ENDLOOP.
IF NOT lit_temp[] IS INITIAL.
*-- Select data from MSEG table
SELECT matnr "Material Number
erfmg "Quantity in unit of entry
tbnum "Transfer Requirement Number
INTO CORRESPONDING FIELDS OF TABLE lit_mseg
FROM mseg "Document Segment: Material
FOR ALL ENTRIES IN lit_temp
WHERE mblnr = lit_temp-mblnr
AND mjahr = lit_temp-gjahr.
*-- If select successful
IF sy-subrc EQ 0.
*---- Get name of the function module for smartform 'ZZ_PTS446_MASTER_TR_REPORT'
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = lv_form_name
IMPORTING
fm_name = lv_func_mod
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3.
*---- Check function module name is not initial.
IF NOT lv_func_mod IS INITIAL.
*------ Select default printer based on User settings
SELECT SINGLE spld
FROM usr01
INTO usr01-spld
WHERE bname = sy-uname.
IF sy-subrc IS INITIAL.
lwa_compop-tddest = usr01-spld. "Device type
ELSE.
lwa_compop-tddest = lc_locl. "Device type
ENDIF.
lwa_compop-tdnoprev = lc_x. "No print preview
lwa_compop-tdnoprint = lc_x. "No printing from print preview
lwa_compop-tdiexit = lc_x.
*------ Setting control parameters
lwa_ctrlop-getotf = lc_x.
lwa_ctrlop-no_dialog = lc_x.
lwa_ctrlop-device = lc_printer.
*------ Call smartform function module
CALL FUNCTION lv_func_mod
EXPORTING
control_parameters = lwa_ctrlop
output_options = lwa_compop
IMPORTING
job_output_info = lwa_return
TABLES
it_mseg = lit_mseg
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
*------ If smartform function module successful
IF sy-subrc EQ 0.
*-------- Transfer OTF data to internal table LIT_OTF
lit_otf[] = lwa_return-otfdata[].
*-------- Convert to PDF
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format = 'PDF'
max_linewidth = 132
IMPORTING
bin_filesize = lv_len_in
TABLES
otf = lit_otf
lines = lit_tline
EXCEPTIONS
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 3
OTHERS = 4.
*-------- If above function module is successful
IF sy-subrc EQ 0.
*---------- Mail body
CLEAR lwa_objtxt.
CONCATENATE 'TR Report of RF Inbound Deliveries'(001)
'is attached.'(002)
INTO lwa_objtxt SEPARATED BY space.
APPEND lwa_objtxt TO lit_objtxt.
*---------- Append Date and Time into Body of email.
CLEAR lwa_objtxt.
MOVE 'File is generated on'(003) TO lv_info.
lv_time = sy-uzeit.
CONCATENATE lv_time+0(2)
lv_time+2(2)
lv_time+4(2)
INTO
lv_time2 SEPARATED BY lc_colon.
CONCATENATE sy-datum+4(2)
sy-datum+6(2)
sy-datum+0(4)
INTO lv_date2 SEPARATED BY lc_slash.
CONCATENATE lv_info
lv_date2
'At'(004)
lv_time2
INTO lv_info
SEPARATED BY space.
lwa_objtxt = lv_info.
APPEND lwa_objtxt TO lit_objtxt.
*---------- Document size
CLEAR: lv_lines, lwa_objtxt.
DESCRIBE TABLE lit_objtxt LINES lv_lines.
READ TABLE lit_objtxt INTO lwa_objtxt INDEX lv_lines.
*---------- Populate packing list for body text
CLEAR lwa_objpack.
lwa_objpack-head_start = 1.
lwa_objpack-head_num = 0.
lwa_objpack-body_start = 1.
lwa_objpack-body_num = lv_lines.
lwa_objpack-doc_type = lc_raw.
APPEND lwa_objpack TO lit_objpack.
CLEAR lwa_objpack.
*---------- Mail subject line
CLEAR lwa_doc_data.
lwa_doc_data-obj_name = 'TR REPORT'(005).
lwa_doc_data-obj_descr = 'TR Report of RF Inbound Deliveries'(001).
lwa_doc_data-doc_size = ( lv_lines - 1 ) * 255 + STRLEN( lwa_objtxt ).
*---------- Populating internal table LIT_OBJBIN
LOOP AT lit_tline INTO lwa_tline.
TRANSLATE lwa_tline USING ' ~'.
CONCATENATE lv_buffer lwa_tline INTO lv_buffer.
ENDLOOP.
TRANSLATE lv_buffer USING '~ '.
DO.
APPEND lv_buffer TO lit_objbin.
SHIFT lv_buffer LEFT BY 255 PLACES.
IF lv_buffer IS INITIAL.
EXIT.
ENDIF.
ENDDO.
*---------- Get total no.of lines of Object table(attachment)
CLEAR lv_lines.
DESCRIBE TABLE lit_objbin LINES lv_lines.
*---------- Packing list for attachment
lwa_objpack-transf_bin = lc_x .
lwa_objpack-head_start = 1 .
lwa_objpack-head_num = 1 .
lwa_objpack-body_start = 1 .
lwa_objpack-body_num = lv_lines.
lwa_objpack-doc_type = lc_pdf .
lwa_objpack-obj_name = 'TR REPORT'(005).
lwa_objpack-obj_descr = 'TR_REPORT'(006).
lwa_objpack-doc_size = lv_lines * 255.
APPEND lwa_objpack TO lit_objpack.
CLEAR lwa_objpack.
*---------- Giving the receiver email-id
CLEAR lwa_receiver.
lwa_receiver-receiver = lv_dlist.
lwa_receiver-rec_type = lc_c.
APPEND lwa_receiver TO lit_receiver.
*---------- Calling the function module to sending email
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = lwa_doc_data
put_in_outbox = lc_x
commit_work = lc_x
TABLES
packing_list = lit_objpack
contents_bin = lit_objbin
contents_txt = lit_objtxt
receivers = lit_receiver
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.
IF sy-subrc EQ 0.
*------------ Wait upto 2 secounds
WAIT UP TO 2 SECONDS.
*------------ Call the RSCONN01 (SAPconnect: Start Send Process)
SUBMIT rsconn01 WITH mode = lc_int
* WITH output = 'X'
AND RETURN.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
REFRESH: lit_mseg , lit_temp , lit_otf , lit_tline ,
lit_objtxt , lit_objpack, lit_objbin , lit_receiver.
CLEAR: lwa_ctrlop , lwa_compop , lwa_return , lwa_tline ,
lwa_objtxt , lwa_objpack, lwa_doc_data, lwa_objbin ,
lwa_receiver.
CLEAR: lv_func_mod , lv_len_in , lv_time , lv_time2 ,
lv_date2 , lv_info , lv_lines , lv_buffer .
Code Formatted by: Alvaro Tejada Galindo on Feb 15, 2008 3:13 PM -
Error while opening a pdf file sent as an attachment in mail
Dear All,
We have converted a alv grid into pdf and sent a mail with the attached pdf file. When the attachment is opened in the received mail we get an error " File does not begin with %pdf-". I am pasting the code.
Select single
from
TSP01
where
RQIDENT = wa_listident.
if sy-subrc <> 0.
exit.
endif.
client = tsp01-rqclient.
name = tsp01-rqo1name.
*BREAK-POINT.
CALL FUNCTION 'RSTS_GET_ATTRIBUTES'
EXPORTING
AUTHORITY = 'SP01'
CLIENT = client
NAME = name
PART = 1
IMPORTING
CHARCO =
CREATER =
CREDATE =
DELDATE =
MAX_CREDATE =
MAX_DELDATE =
NON_UNIQ =
NOOF_PARTS =
RECTYP =
SIZE =
STOTYP =
TYPE = type
OBJTYPE = objtype
EXCEPTIONS
FB_ERROR = 1
FB_RSTS_OTHER = 2
NO_OBJECT = 3
NO_PERMISSION = 4.
if objtype(3) = 'OTF'.
is_otf = 'X'.
else.
is_otf = space.
endif.
*BREAK-POINT.
CALL FUNCTION 'RSPO_RETURN_SPOOLJOB'
EXPORTING
rqident = wa_listident
desired_type = desired_type
IMPORTING
real_type = real_type
TABLES
buffer = l_objcont
EXCEPTIONS
no_such_job = 14
type_no_match = 94
job_contains_no_data = 54
no_permission = 21
can_not_access = 21
read_error = 54.
IF sy-subrc EQ 0.
attach_type = real_type.
ENDIF.
if is_otf = 'X'.
CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
EXPORTING
SRC_SPOOLID = wa_listident
NO_DIALOG = c_no
DST_DEVICE =
PDF_DESTINATION =
IMPORTING
PDF_BYTECOUNT = gd_bytecount
PDF_SPOOLID = pdfspoolid
OTF_PAGECOUNT =
BTC_JOBNAME = jobname
BTC_JOBCOUNT = jobcount
TABLES
PDF = it_pdf_output
EXCEPTIONS
ERR_NO_OTF_SPOOLJOB = 1
ERR_NO_SPOOLJOB = 2
ERR_NO_PERMISSION = 3
ERR_CONV_NOT_POSSIBLE = 4
ERR_BAD_DSTDEVICE = 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
CHECK sy-subrc = 0.
ENDIF.
Transfer the 132-long strings to 255-long strings
LOOP AT it_pdf_output.
TRANSLATE it_pdf_output USING ' ~'.
CONCATENATE gd_buffer it_pdf_output INTO gd_buffer.
ENDLOOP.
TRANSLATE gd_buffer USING '~ '.
DO.
it_mess_att = gd_buffer.
APPEND it_mess_att.
SHIFT gd_buffer LEFT BY 255 PLACES.
IF gd_buffer IS INITIAL.
EXIT.
ENDIF.
ENDDO.
Please guide me to resolve this issue.
Thanks & Regards,
AnandHi,
is the next part of the code correct.
What i mean is packing of the attachment, finding out the size of pdf file and doc type as PDF.
You can also try below link..
Link: [http://wiki.sdn.sap.com/wiki/display/Snippets/SENDALVGRIDASPDFATTACHMENTTOSAPINBOXUSINGCLASSES]
Hope this helps.
Regards,
-Sandeep -
Error in opening the PDF file created from the smart form output.
Hi All,
i have a simple smart form which takes 3 values like customer no, name and no of times customer called and gives an out like
Customer 0001000000 with name Ravi called 5 times today.
I have to send this output to mail as an attachment.
for this i am coding as below.
******Call the SSF Function module
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = Form name
VARIANT = ' '
DIRECT_CALL = ' '
IMPORTING
fm_name = lv_fmname
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3
lv_partner_number = '0001000000'.
lv_name_org1 = 'Ravi'.
lv_z_no_calls_day = '5'.
lw_ctrlop-getotf = 'X'.
lw_ctrlop-no_dialog = 'X'.
lw_compop-tdnoprev = 'X'.
lw_compop-tddest = 'LP01'.
*******Call the Form Function module and get the OTF of form output
CALL FUNCTION lv_fmname
EXPORTING
name_org1 = lv_name_org1
partner_number = lv_partner_number
z_no_calls_day = lv_z_no_calls_day
control_parameters = lw_ctrlop
output_options = lw_compop
user_settings = ' '
IMPORTING
job_output_info = w_return
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
i_otf] = w_return-otfdata[.
*********Now here if i look in to the OTF data i got in debug it has the data i aniticipated along with some other data.
the output is in the format
TDPRINTCOM(2) TDPRINTPAR(70)
ST XXXX.. customer 0001000000 with
name.....
i have my data in the above format spread in three lines of the output otf table where XXXX... is some number.
***********To convert to PDF Format
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format = 'PDF'
max_linewidth = 132
IMPORTING
bin_filesize = lv_len_in
BIN_FILE =
TABLES
otf = i_otf
lines = i_tline
EXCEPTIONS
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 3
err_bad_otf = 4
OTHERS = 5
*********For testing purpose i created a file on the desktop with the the data in i_tline. it created PDF file but when i tried to open it it's giving an error.
i_objtxt = 'test with pdf-Attachment!'.
APPEND i_objtxt.
DESCRIBE TABLE i_objtxt LINES v_lines_txt.
READ TABLE i_objtxt INDEX v_lines_txt.
wa_doc_chng-obj_name = 'Smart Form'.
wa_doc_chng-obj_descr = 'Frequent Caller Alert_Day'.
wa_doc_chng-doc_size = ( v_lines_txt - 1 ) * 255 + STRLEN( i_objtxt ).
*********Creating the Entry for the document
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.
i_objbin] = i_tline[.
DESCRIBE TABLE i_objbin LINES v_lines_bin.
READ TABLE i_objbin INDEX v_lines_bin.
i_objhead = 'Frequentcaller list_Day.pdf'.
APPEND i_objhead.
************Creating the entry for the attachment.
CLEAR : i_objpack.
i_objpack-transf_bin = 'X'.
i_objpack-head_start = 1.
i_objpack-head_num = 1.
i_objpack-body_start = 1.
i_objpack-body_num = v_lines_bin.
i_objpack-doc_type = 'PDF'.
i_objpack-obj_name = 'ATTACHMENT'.
i_objpack-obj_descr = 'FCA'.
i_objpack-doc_size = v_lines_bin * 255 .
APPEND i_objpack.
CLEAR i_reclist.
i_reclist-receiver = 'mail id'.
i_reclist-rec_type = 'U'.
APPEND i_reclist.
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = wa_doc_chng
put_in_outbox = 'X'
commit_work = 'X'
TABLES
packing_list = i_objpack
object_header = i_objhead
contents_bin = i_objbin
contents_txt = i_objtxt
receivers = i_reclist
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
operation_no_authorization = 4
OTHERS = 99.
This is all i am doing.
It is sending a mail with the attachment but we are not able to open the attachment. it's giving an error like file is damaged and couldn't be repaired.
I serched in the forum but i couldn't get the answer.
I suspect there is a problem in getting the OTF data..
Please help me in resolving this issue....
Thanks in advance.
RKCheck the sample , and see where you made the mistake.
REPORT ZPDF_MAIl.
DATA:
w_fm_name TYPE rs38l_fnam,
w_bin_filesize TYPE i,
w_filesize TYPE i,
w_lines_txt TYPE i,
w_lines_bin TYPE i.
DATA:
wa_ctrlop TYPE ssfctrlop,
wa_outopt TYPE ssfcompop,
wa_objhead TYPE soli_tab,
wa_buffer TYPE string,
wa_doc_chng TYPE sodocchgi1.
DATA:
BEGIN OF t_mail_ids OCCURS 0,
mailid TYPE ad_smtpadr,
END OF t_mail_ids,
t_otfdata TYPE ssfcrescl,
t_otf TYPE itcoo OCCURS 0 WITH HEADER LINE,
t_pdf_tab TYPE tline OCCURS 0 WITH HEADER LINE,
t_objpack LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,
t_objtxt LIKE solisti1 OCCURS 0 WITH HEADER LINE,
t_objbin LIKE solisti1 OCCURS 0 WITH HEADER LINE,
t_record LIKE solisti1 OCCURS 0 WITH HEADER LINE,
t_reclist LIKE somlreci1 OCCURS 0 WITH HEADER LINE.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'Z195_TEST'
IMPORTING
fm_name = w_fm_name
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3.
IF sy-subrc EQ 0.
ENDIF. " IF sy-subrc EQ 0.
wa_ctrlop-getotf = 'X'.
wa_ctrlop-no_dialog = 'X'.
wa_outopt-tdnoprev = 'X'.
CALL FUNCTION w_fm_name
EXPORTING
control_parameters = wa_ctrlop
output_options = wa_outopt
user_settings = 'X'
IMPORTING
job_output_info = t_otfdata
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
IF sy-subrc EQ 0.
ENDIF. " IF sy-subrc EQ 0.
t_otf[] = t_otfdata-otfdata[].
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format = 'PDF'
max_linewidth = 132
IMPORTING
bin_filesize = w_bin_filesize
TABLES
otf = t_otf
lines = t_pdf_tab
EXCEPTIONS
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 3
err_bad_otf = 4
OTHERS = 5.
IF sy-subrc EQ 0.
ENDIF. " IF sy-subrc EQ 0.
LOOP AT t_pdf_tab.
TRANSLATE t_pdf_tab USING '~'.
CONCATENATE wa_buffer t_pdf_tab INTO wa_buffer.
ENDLOOP.
TRANSLATE wa_buffer USING '~'.
DO.
t_record = wa_buffer.
APPEND t_record.
SHIFT wa_buffer LEFT BY 255 PLACES.
IF wa_buffer IS INITIAL.
EXIT.
ENDIF.
ENDDO.
t_objtxt = ' To Change the COR, Use the Transaction ZCOR_CHANGE'.
APPEND t_objtxt.
t_objtxt = ' Check the Attached PDF file for COR'.
APPEND t_objtxt.
DESCRIBE TABLE t_objtxt LINES w_lines_txt.
READ TABLE t_objtxt INDEX w_lines_txt.
READ TABLE t_objtxt INDEX w_lines_txt.
wa_doc_chng-obj_name = 'COR Display'.
wa_doc_chng-expiry_dat = sy-datum + 10.
CONCATENATE 'COR' "w_cornr
'-' "w_stat_descr w_action_desc
INTO wa_doc_chng-obj_descr SEPARATED BY space.
wa_doc_chng-sensitivty = 'F'.
wa_doc_chng-doc_size = w_lines_txt * 255.
CLEAR t_objpack-transf_bin.
t_objpack-head_start = 1.
t_objpack-head_num = 0.
t_objpack-body_start = 1.
t_objpack-body_num = w_lines_txt.
t_objpack-doc_type = 'RAW'.
APPEND t_objpack.
t_objpack-transf_bin = 'X'.
t_objpack-head_start = 1.
t_objpack-head_start = 1.
t_objpack-head_num = 0.
t_objpack-body_start = 1.
DESCRIBE TABLE t_objbin LINES w_lines_bin.
READ TABLE t_objbin INDEX w_lines_bin.
t_objpack-doc_size = w_lines_bin * 255 .
t_objpack-body_num = w_lines_bin.
t_objpack-doc_type = 'PDF'.
t_objpack-obj_name = 'COR'.
t_objpack-obj_descr = 'COR Test'.
* concatenate 'COR' w_cornr into t_objpack-obj_descr
* separated by space.
APPEND t_objpack.
*LOOP AT t_mail_ids.
CLEAR t_reclist.
t_reclist-receiver = 'INTENATEMAIL'.
t_reclist-rec_type = 'U'.
APPEND t_reclist.
*ENDLOOP.
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = wa_doc_chng
put_in_outbox = 'X'
commit_work = 'X'
TABLES
packing_list = t_objpack
object_header = wa_objhead
contents_bin = t_objbin
contents_txt = t_objtxt
receivers = t_reclist
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.
IF sy-subrc EQ 0.
ENDIF. -
Error when opening a pdf file in chinese
Hello,
I have created a specific PO form by copying the standard one BBP_PO in SRM.
After generating a pdf file with my specific form, I get the error "There was a problem reading this document (15)" when I try to open it.
I can see some characters, and then everything disappears. I have both english and chinese characters.
The chinese language is installed.
If I use the standard form, I don't get the error !
In the form, I use some standard text, which are created in english and chinese.
Thanks for your help.
MarcJust so you know, my default PDF can opener remains set to Preview, though I will use Acrobat Reader when and if it serves my need.
The upside of the Show scroll bars set to always is intuitive with applications. The downside is that any web content that has the CSS overflow:scroll configured will permanently have scrollbars attached to that content. At least, that is the behavior with Safari on Mavericks. Since I do web work too, I have left my scrollbar setting to when scrolling.
I believe the OP issues about resizing PDFs has to do with the default nature of Preview to open PDFs in continuous, rather than single page mode. In the former state, one must always fuss with resizing the Preview window, and in the latter, Preview does what it should do — a single, tightly cropped PDF page. Setting the Single Page preference setting in one document does not make this behavior permanent for subsequent documents.
I made two changes to Preview that open any PDF in Single Page mode, and tightly cropped to that page:
Preview PreferencesPDF: Define 100% scale as: Size on screen equals size on printout
Defaults write
Change to ~/Library/Containers/com.apple.Preview/Data/Library/Preferences
defaults write com.apple.Preview kPVPDFDefaultPageViewModeOption 1
Continuous view mode is (0) zero
PDF documents will now default to Single Page mode -
WebInterface Server - Error while opening the PDF file
Hello,
We are using webinterface to display the MSDS genearated.
Our customers use the link provided to them for displaying the msds.
We imported a few MSDS ( CG36 ), which are in PDF format & displayed successfully on the webinterface server.
However the newly generated MSDS ( Create Report ) from SAP EH&S system are not getting displayed on the webinterface server. We are getting following error message:
Error reading resulitng document from filesystem. Class:
COM.td.ehswww.results.EhsDocument.
Method:getResolvedDocument().This error could have been caused by a misconfigured filter.ini.
We checked and found that the filter.ini file is same on both quality & production system.
We are able to generate & display the report successfully on quality webinterface server.
Problem only appears on the production webinterface server.
We also tried to search for the SAP notes on this issue.
But we could not find out any relevant note for our issue.
Any help in this regarding is highly appreciated.
Thanks & Regards,
AarohiHello Sebastian,
Thank you very much for your help.
We checked on both quality & production webinterface server.
The Tomcat service is not executed with any specific user.
The system is working fine on quality , we are getting errors only on the production.
We also identified a strange behavior on the production web interface server.
We are able to see files under following menu path:
There are error files getting generated.
I guess these error files are getting generated while converting the rtf file to pdf file.
The resultant PDF file is not getting generated and hence system is giving the error on the webpage.
Can you guide us as to why these error files are getting generated .? What can be the root cause of this issue.? and How to prevent this.?
Again thanks a lot for your help.
Best Regards,
Aarohi -
Error message when converting PDF files to Word
Hi there,
I keep getting an error message "an unexpected error has occured" when trying to convert PDF files to Word. One document was 4MB and the other 9MB. Both are scanned documents.
Can someone please help with this?Sorry, the graphic didn't upload on the original message.
-
I have QTP 10.0 and Adobe reader 9.3 installed on my machine. The machine I am using is a VMware device.
I have downloaded and installed the PDF Test Toolkit and the Adobe SDK.
For QTP I have the ActiveX, Web and Adobe add ins loaded.
I do not have Acrobat loaded.
For my first script all I wanted to do was open an existing PDF. I used the code displayed below.
Option Explicit
Dim gApp
Dim gPDDoc
'### Create objects required for the test
Set gApp = CreateObject("AcroExch.App")
Set gPDDoc = CreateObject("AcroExch.PDDoc")
'### Open a PDF Document
gPDDoc.Open ("C:\TestData\PerfOnVMware")
'### Kill all created objects
Set gPDDoc = Nothing
Set gApp = Nothing
For both Set statements (in italics) I am getting the following message
"ActiveX Component Can't Create Object "AcroExch.App"
Also, as to the instructions. I read the instructions to mean that you need the Adobe Reader OR Adobe Acrobat. However in some of the research I have been doing on other boards many of the solutions indicate that Acrobat is required. Can some one take a moment and clarify what I will need installed on each machine in order to create and execute scripts.
Any thoughts would be helpful
Thanks
MikePlease see the document 'Interapplication Communication API Reference' in the Acrobat SDK. Reader doesn't support the AcroExch methods. You can use the DDE methods. For more quesitions, please visit the SDK forum:
http://forums.adobe.com/community/acrobat/acrobat_sdk
You should still be able to record and playback UI events in Reader.
Thanks - John Briere
Engineering Manager, Acrobat Production Engineering -
Unknown error in opening attached pdf files
Vista operating system; Adobe Reader is selected to use to open pdf files but is not used within Thunderbird. If saved to desktop, files open normally.
How to instruct Thunderbird to use Adobe Reader to open .pdf files.
Right click on the attachment and choose 'open'
a new window opens
choose 'Open with' and select 'Adobe Reader' from the drop down list.
select to 'Do this automatically for files like this from now on'
click on OK
This will now show up here:
Tools > Options > Attachments > Incoming tab
or
3bar menu icon > Options > Options > Attachments > Incoming tab
under content Type it will show 'adobe acrobat document (.pdf)
and to the right it should show the 'Action' to use adobe reader.
If you want Thunderbird to always ask where to save files, you can select this option or choose where to save files to and use Browse button to locate a folder.
click on OK -
Error message when reading PDF files
I'm running FFox 5.0 and have the Adobe Acrobat plug-in (V10.1.0.534). My system in WinXP/SP3. I recently updated my Adobe Reader to Version X and ever since then I encounter an error when trying to read a pdf document on a web site. The document comes up, but in a bit of a strange way. First I get an "(JavaScript Application)" error box showing the message "Load: TypeError: browser is unidentified." Then when I touch the OK button the document is displayed, but with a double window header, the upper one showing "Mozilla Firefox" and the lower one the orange-shaded "Firefox v". As I said, the document is displayed OK, but something isn't normal. Is it the fault of the updated Adobe Reader, or FFox V5, or what?
Does it work the first time after you delete your Normal.dotm file? You may be running into the same issue that is detailed in this post Unable to open document. Please check to see if you have read permission for the above file.
Maybe you are looking for
-
Need to copy the present address as permanent in the core HR address form a
Hi All, Is there any way werein we can copy the present address as permanent in the core HR address form and also in in the selfservice applications? Thanks Rakesh
-
Indesign CS5.5 "could not complete your request because of a database error"
Hi guys. Have a huge problem. Just finished my indesign 20 page document for uni. I have gone back to open this file so that i can print it. I saved it as an IDML as the place im printing it has an older version of indesign to me. When i opened it on
-
PXI-4071 Calibration Date Update
Is there a process to have the internal Calibration Date update [using the Cal Executive software] without running the adjustment-reverify routines?
-
Des fenêtres sans block diagramme et prêtes à exécuter
Bonjour, j'ai un projet qui contient plusieurs IHM. Quand j'ai vouli passer à la construction de l'applciation exécutable, j'ai fait une modification 'que je m'en souviens pas ) du coups j'ai tous mes IHM qui sont dans un état "pret a etre éxécuter "
-
New Mac pro2010 install 10.5 then frozen
I have some apps required mac os 10.5. And these apps did not have ver10.6. I have tried the retail 10.5.1 disc to install , but after boot for cd it frozen. Is there something or somebody to help me? 3Q