PDF file issue on IE 7 and 8
I have built a web application on jdeveloper 11.1.2. One of the pages has a pop up with a goButton on it.
The destination property points to a servlet along with parameters : eg: filedownloadmanager?#{viewScope.DocsForPepBean.constantDocumentKeyUrlParameterName}=#{viewScope.DocsForPepBean.documentFilePathFileName}
and the TargetFrame property is set to _blank. So when you click on this button, a pdf file gets opened in a new window. This woks super fine on IE 9 /Firefox/ Chrome.
But the issue is with IE7 or 8. Both the browsers navigate to the correct URL,but fail to display the document. A blank screen comes up on these browser.
Please help me if you have any ideas.
Thanks,
Shai.
Hey Guys,
Thanks for your responses. I would really like to share my code and explain you more clearly about the problem.
When the goButton is clicked, a window opens up with the following url :
https://server.abc.com:4443/wssMember-ViewController-context-root/faces/memberFlow/filedownloadmanager?docKey=rJ3mK42nqMT8xwO1FCpt4M6_H6a8hvTLTQzl6XKmVhw
That means we are calling a servlet passing two parameters dockey and its value.
The servlet filedownloadmanager looks like this:
public class FileDownloadManager extends HttpServlet
@SuppressWarnings("compatibility:1063162876298056414")
private static final long serialVersionUID = 3554660117368615095L;
public void init(ServletConfig config) throws ServletException
super.init(config);
public void doGet(HttpServletRequest request,
HttpServletResponse response) throws ServletException,
IOException
String filename = null;
try
filename =/document_folder/ + docKey
} catch (Exception e)
System.out.println("unencrypetd param -->" + filename + "<--");
//set based on file type of doc passed in
String fileExtension = filename.substring(filename.lastIndexOf('.'));
if (fileExtension == "pdf")
response.setContentType("application/pdf");
//This code follows by other file extension types
ServletOutputStream out = response.getOutputStream(); //to write the data to the response
File fileToDownload = new File(filename);
if(!fileToDownload.exists())
throw new RuntimeException("Error retrieving file to download.");
FileInputStream inFileToDownload = new FileInputStream(fileToDownload); //to read file in
byte [] inFileBuffer = new byte[1024]; //to read the data from the input stream
int numberOfBytesRead; //track buffer
while((numberOfBytesRead = inFileToDownload.read(inFileBuffer)) > 0)
out.write(inFileBuffer, 0, numberOfBytesRead);
out.close();
public void doPost(HttpServletRequest request,
HttpServletResponse response) throws ServletException,
IOException
doGet(request,response);
}So code is programmed to set the content type and fileinputstream is used to read file and then writes it to the output stream.
Writing files to a temporary location and then redirecting the browser seems to be a good idea but its gonna take us quite some time. I was looking if there was an easy work around.
Thanks,
Shai.
Edited by: Shai on Mar 19, 2012 9:20 AM
Similar Messages
-
Adobe X PDF files converted to jpg, edited and converted back to PDF have ragged, unclear text. I didn't have this problem with Acrobat 9 standard. What is the remedy for this. If this is the best I can expect, I won't be able to use X standard.
I can't imagine any worse workflow than converting to JPEG to edit text, then back to PDF. Text in a PDF is a vector thing, smooth at all resolutions. And JPEG is made for photos. EVERY conversion to JPEG and back loses quality but how much loss there is will vary.
If you must go to an image format, try PNG. -
How can i send a PDF file to my i phone and be able to read it
How can i send a PDF file to my i phone and be able to read it
Use the free Adobe Reader for iPhone -> https://itunes.apple.com/us/app/adobe-reader/id469337564?mt=8.
Clinton -
Starting yesterday I can scan a pdf file in from the scanner and can not send a pdf in an email attachment. What happened? Windows 8
Adobe Reader can't scan documents. What software do you use?
-
Placing a PDF file in an InDesign Doc and PDF again for a vendor- Good or Bad?
Current debate in the graphics department is
Is it good or bad to place a PDF (general Press Quality) into an InDesign document and then creating a new PDF file with print vendor settings from that document?
My thought is that you in some cases are double compressing, lower dpi images getting compressed, RGB color mode images okay on layout but now are converted to CMYK and shift in the PDF.
Are there other issues and if so what are they.
Also is there an easy way to check ppi, color mode and compression of an acrobat PDF? I mean other than doing a preflight and searching into each image folder twenty levels deep. FlightCheck and Enfocus are not options,
too many vendors and not enough time.
Thank you all in advance for your words of wisdom.Dov, I just got off the phone with a trusted professional in the Prepress field at a quite reputable print house, and he said "Dov is the guru of PDFs, ask him this...Will the InDesign CS3 preflight see the characteristics of a PDF (color mode, dpi(ppi), compression) if the original placed PDF is created as a pdf .X4 (1.7)? Ask him also if you were to use one form of compression (say lossless) in the original PDF, and then another form(say lossy) in the vendor PDF would it hold both or convert the first PDF compression to the second form?"
Any other responses are also welcomed. -
Example: on the home page of the website http://www.dot.ri.gov
there is an active link entitled "Overview of all Iway changes - Fall 2010"
Clicking on it exposes the following url:
http://www.dot.ri.gov/documents/iway/Iway_Changes_Fall2010.pdf
However, the tab remains blank, even though it says "Done" in the bottom left corner.
When I use Google Chrome as a browser, I have no problem opening that url.
This has occurred numerous times over the past several days on several different sites--and usually the link that will not open is a pdf file.Hello,
'''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
''(If you're not using it, switch to the Default theme.)''
* On Windows you can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
* On Mac you can open Firefox 4.0+ in Safe Mode by holding the '''option''' key while starting Firefox.
* On Linux you can open Firefox 4.0+ in Safe Mode by quitting Firefox and then going to your Terminal and running: firefox -safe-mode (you may need to specify the Firefox installation path e.g. /usr/lib/firefox)
* Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
[[Image:FirefoxSafeMode|width=520]]
''Once you get the pop-up, just select "'Start in Safe Mode"''
[[Image:Safe Mode Fx 15 - Win]]
'''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
Thank you. -
Can't print scanned pdf files Xerox 3450 Adobe Pro and Reader 9
I have a user that cannot print PDF's made up of scanned images to a network printer.
The job goes to the printer and spools up but hangs at either 64kb or 255kb and then errors out.
Even if I print just one page, it does the same thing.
Folks with Acrobat Pro 8 or Reader 8 can print the same file to the same printer with no problems.
OS: XP
Network Printer: Xerox Phaser 3450 PS
Adobe: Reader 9.1.3 and Acrobat Professional 9.1.3
I have tried the following:
On the Xerox 3450 PS Printer:
- disabling Advanced Printing Options
- changing Post script options to: EPS, optimize for speed, optimize for portablity
- reloading the printer drivers
- unmapping/remapping the printer on the customer's system.
In the Reader and Acrobat Pro print options:
- print only Document rather than Document and Markups
- print as image
- unchecked 'convert to true type1'
- changed options to Send for each page, send by range,
- tried using Language level 2
- reinstalling Adobe Reader 9
This happens once the customer is upgraded to Adobe Reader 9. If I disable the 'Advanced Printer options' he can print OCR/Text PDF files but cannot print even a single page Scanned image PDF file. The spooler hangs at 255kb and then the print job errors out.
I confirmed this same issue on multiple machines and on other Xerox 3450 printers on multiple print servers. It is the same for Adobe Reader 9 and Adobe Acrobat Pro 9.
The machines and users are in different parts of the country on different print servers but the symptoms are the same: after being upgraded to Adobe Reader 9.1.3 or Adobe Acrobat Pro 9.1.3 they cannot send certain PDF files (so far just scanned image files) to a Xerox 3450 PS network printer.
Any suggestions on what to try next would be appreciated.This problem plagued me for several weeks, until I found a solution that has allowed me to print scanned documents as quickly as a text document.
I have confirmed this worked on several network X3450 printers using Adobe Reader 9.1.3 and Adobe Acrobat Professional v9.1.3
In the Reader and Acrobat Pro print options:
Click on the Advanced button and uncheck "Print as image" if it's checked.
Click on "Let printer determine colors" to enable this option
Click OK and Print.
After making this change, the document queued up and printed as fast a any text document printed.
I had a single page scanned text document which was about 19 KB, but when sent to the printer, the spooler grew from 10 MB to 50 MB to 80 MB, until an error occurred. Like you I tried many combinations until one worked. Then it was a matter of figuring out which setting was primarily responsible for allowing it to print quickly.
Most likely the problem is with the raster image processor (RIP) within Adobe Reader and Acrobat. By selecting the option to "Let the printer determine colors", it passes that part of the processing over to the RIP within the printer. Since the X3450 is not a color printer, the information is easily converted to grayscale and printed.
I'm still trying to absorb the information in the articles I have read so far, and I welcome any discussion about this from those more knowledgeable than I.
I hope this fix works for you as it did for me. I made a lot of happy customers once they were able to print since most of their documents are scanned rather than created with Acrobat. -
Here is the situation.
Installed Max OSX 10.5.
Caused a problem with printing pdf files on a Canon imageclass MF4150, resolved by installing a new printer driver (UFRII_V150MacOSX) & fax driver (FaxV160MaxOSX.dmg) dl'd from Canon.
Now I cannot view any pdf files. I use Adobe Acrobat V.8.1.1 all I get is a grey screen with the adobe logo in the centre.
Apparently there will be another update to acrobat in January that may deal with the issue.
Is there some way (other than downloading each and every pdf to my computer in order to view them? Perhaps a videocard driver update as well? Any suggestions?So the best workaround I've found so far is to just go into Acrobat/preferences on the left side click "internet" and uncheck the box that says to open acrobat files using safari <your version> and do a re-start.
It just opens the pdf file in Acrobat then.
Seems to work for me. -
PDF file annotation in smart phones and tabs
Is it possible to open attachments inside PDF file through Adobe Reader in smart phones and tabs?
Hi Vikrantt,
Am still looking for a solution, I am attaching a few snapshots which I hope will help you understand my issue. These snapshots are taken from my desktop where as the same feature not working (rather not found) in Android or windows os mobile phones.
I have made some comments in each image, I hope that makes a better understanding.
Thanks,
K.Rajesh -
I have used the Firefox troubleshooting guides, no good. The Java patch is enabled and shows when I check applications. However when I run Firefox plugins it still shows the java plug in is outdated and need to be updated immediately.
OK, I went to the Firefox knowledge base article you cited and followed the directions with the exception that in the drop down menu I choose Adobe Reader for PDF files rather than the plug in default that apparently was set by the Java patch. Problem solved !!!!!!! Thank you so much for taking the time to get me back to the basic place I needed to be to correct this issue. YOU ROCK!!!!
-
Converting pdf files to word or excel and then typing on them and changing back to pdf
Adobe ExportPDF
Converting existing PDF files into Microsoft Word, Microsoft Excel, or RTF files for easy editing with convenient online services from Adobe
once you created a file from pdf to word or excel and typed on them can you then change them back to pdf and does the above package allow me to do this?hi david
im trying to work on a file that was sent to me, i downloaded
*Adobe Reader X (10.1.4) (48.49 MB) to read the document and registered to
export the documents to excel and word.*
*when the document exports to word and i try to open it i get the
error below ....what do i need to do to resolve this issue? *
Please wait...
If this message is not eventually replaced by the proper contents of the
document, your PDF
viewer may not be able to display this type of document.
You can upgrade to the latest version of Adobe Reader for Windows®, Mac, or
Linux® by visiting
http://www.adobe.com/products/acrobat/readstep2.html.<http://www.adobe.com/products/acrobat/readstep2.html>
For more assistance with Adobe Reader visit
http://www.adobe.com/support/products/<http://www.adobe.com/support/products/>
acrreader.html.
Windows is either a registered trademark or a trademark of Microsoft
Corporation in the United States and/or other countries. Mac is a trademark
of Apple Inc., registered in the United States and other countries. Linux
is the registered trademark of Linus Torvalds in the U.S. and other
countries.
*Adobe Reader X (10.1.4) (48.49 MB) *
- Your system: Windows 7, English
- Do you have a different language or operating
system?<http://get.adobe.com/reader/otherversions/>
On Fri, Aug 24, 2012 at 10:03 AM, Jeanette Leisegang -
To upload a RTF and a PDF file to SAP R/3 and print the same through SAP
Hi,
I have a requirement to upload a PDF file and a RTF file to SAP R/3 and print the same.
I wrote the following code for uploading a RTF file to SAP R/3 and print the same. However, the problem is , the formatting present in the RTF document( bold/italics..etc) is not being reflected when I do the 'print-preview' after the executing the code below :
report z_test_upload .
data: begin of itab occurs 0,
rec type string,
end of itab.
data: options like itcpo.
data: filename type string,
count type i.
data: filetype(10) type c value 'ASC'.
DATA: HEADER LIKE THEAD OCCURS 0 WITH HEADER LINE.
DATA: NEWHEADER LIKE THEAD OCCURS 0 WITH HEADER LINE.
DATA: ITFLINE LIKE TLINE OCCURS 0 WITH HEADER LINE.
DATA: RTFLINE LIKE HELP_STFA OCCURS 0 WITH HEADER LINE.
DATA: string_len TYPE i,
n1 TYPE i.
selection-screen begin of block b1.
parameter: p_file1(128) default 'C:\test_itf.rtf'.
selection-screen end of block b1.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file1.
CALL FUNCTION 'F4_FILENAME'
IMPORTING
file_name = p_file1.
start-of-selection.
move p_file1 to filename.
call function 'GUI_UPLOAD'
EXPORTING
filename = filename
filetype = filetype
TABLES
data_tab = itab
EXCEPTIONS
file_open_error = 1
file_read_error = 2
no_batch = 3
gui_refuse_filetransfer = 4
invalid_type = 5
no_authority = 6
unknown_error = 7
bad_data_format = 8
header_not_allowed = 9
separator_not_allowed = 10
header_too_long = 11
unknown_dp_error = 12
access_denied = 13
dp_out_of_memory = 14
disk_full = 15
dp_timeout = 16
others = 17.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
loop at itab.
string_len = strlen( itab-rec ).
n1 = string_len DIV 134.
ADD 1 TO n1.
DO n1 TIMES.
rtfline-line = itab-rec.
APPEND rtfline.
SHIFT itab-rec BY 134 PLACES.
ENDDO.
endloop.
HEADER-TDSTYLE = 'S_DOCUS1'.
HEADER-TDFORM = 'S_DOCU_SHOW'.
header-tdspras = 'E'.
CALL FUNCTION 'CONVERT_TEXT'
EXPORTING
CODEPAGE = '0000'
DIRECTION = 'IMPORT'
FORMAT_TYPE = 'RTF'
FORMATWIDTH = 72
HEADER = header
SSHEET = 'WINHELP.DOT'
WITH_TAB = 'X'
WORD_LANGU = SY-LANGU
TABLETYPE = 'ASC'
TAB_SUBSTITUTE = 'X09 '
LF_SUBSTITUTE = ' '
REPLACE_SYMBOLS = 'X'
REPLACE_SAPCHARS = 'X'
MASK_BRACKETS = 'X'
IMPORTING
NEWHEADER = NEWHEADER
WITH_TAB_E =
FORMATWIDTH_E =
TABLES
FOREIGN = RTFLINE
ITF_LINES = ITFLINE.
LINKS_TO_CONVERT =
if sy-subrc <> 0.
endif.
CALL FUNCTION 'PRINT_TEXT_ITF'
EXPORTING
HEADER = newheader
OPTIONS = options
IMPORTING
RESULT =
TABLES
LINES = itfline.
if sy-subrc <> 0.
endif.
Any hints or suggestions to solve this problem will be highly appreciated.
Thanks,
AvraHi Vishwas,
Check out the thread [Efficient way of saving documents uploaded|Re: Efficient way of saving documents uploaded by users; and check the blog by Raja Thangamani.
Also check the thread [Export Images through Function Modules |Export Images through Function Modules;.
Hope it helps you. -
Clicking on a link to a .pdf file in Firefox results in Firefox displaying the box "Format error: not a .pdf or corrupted"
This has happened for several years with any number of web pages. A link to the latest event is below, but it typically happens almost every time I click on a link to a .pdfUpgrade your browser to Firefox 9 and check
* getfirefox.com -
Function module to fetch pdf file from App. Server and print/email?
Hi all,
Is there any function module to fetch a PDF file from APPLICATION SERVER and print the PDF file or send it as an attachment in an email?
Please help..
Thanks in advance.
Sandeep.Hi Sandeep,
Is there any function module to fetch a PDF file from APPLICATION SERVER
1) As far as i know there are no FMs to read a file from App server, you can do the same using *OPEN/READ/CLOSE dataset ABAP statements - There are tons of examples for this on the net.
and print the PDF file or send it as an attachment in an email?
You can send the file read from the app server(by the suggested method above) and use CL_BCS to send it as an attachment.
Again there are many examples on the net on how to use CL_BCS for the same.
Regards,
Chen -
I have a list of names and email addresses (250) and in a previous version of firefox I would go on the web page and when I would place the curser over the members email address and click it would automatically bring up an Outlook email to send box with the members email address already listed and ready for me to enter any information. This new firefox version (19) just lets the curser go across the email address and nothing happens when I click. How do I get the previous feature back?
Current Firefox versions have enabled a new build-in PDF Viewer and that viewer doesn't have all the features that the Adobe Reader has.
You can change the action for Portable Document Format (PDF) from Preview in Firefox to use the Adobe Reader or set to Always Ask.
*https://support.mozilla.org/kb/change-firefox-behavior-when-open-file
You can set the pdfjs.disabled pref to true on the <b>about:config</b> page to completely disable the build-in PDF viewer and use the Adobe Reader instead.
See also:
*https://support.mozilla.org/kb/view-pdf-files-firefox-without-downloading-them
Maybe you are looking for
-
Upload and save an Excel file from a local machine to SAP
I am looking for a transaction which allows me to upload an Excel file from a local machine to SAP and save this file (the users should be able to edit the file in SAP afterwards). Then I would like to open and read the data from the file with the he
-
Web Service in Sneak Preview SP15 gives NoSuchFieldError: _typeRegistry
Hi, I've been trying to create a WebDynpro application which should access a simple webservice. To ensure that the webservice actually works, I have successfully contacted it and sent a request with a successful response to it using WSNavigator. All
-
Utf-8 error (Malformed input character in...)
Hello, I am using Jdeveloper 10.1.2.1.0. When I compile a project , I receive error message: "Malformed input character in ...file." . When I double click in this error message, I see the source file has some Unicode encoded string.When I view Projec
-
If you connect mac to 3d tv will it show in 3d, If you connect mac to 3d tv will it show in 3d
If you connect mac to 3d tv will it show in 3d, If you connect mac to 3d tv will it show in 3d
-
Help needed regarding regular expressions
hello i need to write a program that recieves a matematical expression and evaluates it...in other words a calculator :) i know i need to use regular expressions inorder to determine if the input is legal or not ,but i'm really having trouble setting