Byte serving or pdf tuning
hi all
i would like to provide byte serving or pdf tuning in iplanet web server 6.0...let me briefly ..explain....
when user views pdf file from iplanet web server in the place of downloading total pdf file...i want sent page by page to browser...so, how to provide byteserving in iplanet...
thanks..
Hi
thanks for reply
i am not disabling the http byte range..i want to tune..the byte range..
web server can not send the complete large document...at a time..so, user should wait..to see the document ...
in the place of that.....when the user is viewing..the first page...the web server continiosly sends the data...
so, user does not need to wait...to download the complte large document..i.e. pdf file
thanks
Similar Messages
-
Hello, I make a servlet that sends pdf with byte serving. I have no problems with Windows Clients but with Macintosh clients (Explorer, Netscape 7 works) acrobat waits like expecting some data. Any idea if I must use some special header or do you have examples?
It could be a content length problem.
If you are creating the pdf 'on the fly' you could try
writing it to a ByteArrayPrintWriter, convert it to a
byte array, setContentLength(byteArray.length()) and
write the byte array to the output stream.
Hope this helps.Thanks. I'm not creating the pdf. Its a file on my server that I send. So I put the content-length to the size of the file. -
How to enable byte serving(fast web view ) for pdf on tomcat 5.x server
Hi,
I am new the site and this is my first request.
I have to download pfd, instead of waiting the user for complete download of the page, first I need to display first page, and then in the background I have to download the rest of the document. Which is byte serving. I try to implement byte serving (fast web view for pdf) for pdf files in Tomcat 5.x it is not working. The same functionality is working in other servers.
I have not done any coding to use byte serving in the other servers, simply I enable byte serving for pdf using the adobe.
Can any one help me …..
Thanks…..Hi,
I am new the site and this is my first request.
I have to download pfd, instead of waiting the user for complete download of the page, first I need to display first page, and then in the background I have to download the rest of the document. Which is byte serving. I try to implement byte serving (fast web view for pdf) for pdf files in Tomcat 5.x it is not working. The same functionality is working in other servers.
I have not done any coding to use byte serving in the other servers, simply I enable byte serving for pdf using the adobe.
Can any one help me …..
Thanks….. -
Digital signed and PDF byte-serving
Is a PDF that has been created/enabled for 'fast web view' and then been subsequently digitally signed, still able to use byte-serving optimization or does the fact that the entire PDF needs to be available for sig validation preclude that type of fast web view optimization?
The entire PDF needs to be downloaded for signature validation to work.
-
Hi,
problem:
i have some pdf files outside the webroot and i have to serve those files to user as a fast web view.
Note: fast web view is a feature of IIS not coldfusion application server.
currently how i m doing this made a virtual directory to those pdf files folder and i redirect the user to the attachment
so the file serve by IIS itself.
however using this approach user can get the file if he knows the attachment file name. so this is a security concern.
can anyone suggest me any alternate solution for this security concern.
thanks
Prashant Gupta
Blog: http://chakdecoldfusion.blogspot.com/Hi mack,
thanks for the quick reply however this is not my problem.
if i serve the pdf files using <cfcontent tag it takes time to load in the browser even if pdf file is marked for fast web view.
so i choose that i create a virtual directory and redirect the user to that file.
in this way IIS handle this request and since this is in-built feature of web server so user is
able to see the pdf as fast web view.
but my main security concern in this apporach is if user has file name then he can use the same url and get some other pdf file.
however i appreciate your reply.
thanks
Prashant -
Use byte array of PDF to display PDF in IE browser
I get byte array of PDF as input argument. I need to use byte array to display PDF in IE browser. I am writing code in doGet method of Servlet to accomplish this. However, PDF never gets displayed. I see Acrobat starting, but original PDF never gets displayed in browser.
I am using code below in doGet of Servlet:
resp.setContentType("application/pdf");
resp.setHeader("Expires", "0");
resp.setHeader("Cache-Control","must-revalidate, post-check=0,
pre-check=0");
resp.setHeader("Pragma", "public");
resp.setHeader("Pragma", "no-cache"); //HTTP 1.0
resp.setDateHeader("Expires", 0); //prevents caching at the proxy
server
resp.setHeader("Cache-Control", "no-cache"); //HTTP 1.1
resp.setHeader("Cache-Control", "max-age=0");
resp.setHeader("Content-disposition", "inline; filename=stuff.pdf");
byte[] inBytes = getBytesOfPDF(...);
ByteArrayOutputStream outStream = new ByteArrayOutputStream();
if(inBytes !=null){
outStream.write(inBytes);
outStream.flush();
I added dummy name of PDF (stuff.pdf) for display, as I heard IE requires a file name with .pdf extension for display.
But I had no luck with the code above.
Any help with code will be appreciated.
[email protected]Hi
Am using the same code and i am able to get the PDF out.
/* Finally writing it into a PDF */
response.setContentType("application/pdf");
/* filename could be any thing */
response.setHeader("Content-Disposition",
"attachment; filename=Report.pdf");
response.setContentLength(content.length);
response.getOutputStream().write(content);
response.getOutputStream().flush();
But this also throws a error in the server :
java.lang.IllegalStateException: getOutputStream() has already been called for this response
at org.apache.catalina.connector.Response.getWriter(Response.java:606)
at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:195)
at org.springframework.web.servlet.view.freemarker.FreeMarkerView.processTemplate(FreeMarkerView.java:344)
at org.springframework.web.servlet.view.freemarker.FreeMarkerView.doRender(FreeMarkerView.java:280)
at org.springframework.web.servlet.view.freemarker.FreeMarkerView.renderMergedTemplateModel(FreeMarkerView.java:225)
at org.springframework.web.servlet.view.AbstractTemplateView.renderMergedOutputModel(AbstractTemplateView.java:174)
at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:239)
at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1142)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:879)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:792)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:476)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:441)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
at org.ca.ielts.presentationtier.servlet.AuthorisationAuthenticationFilter.doFilter(Unknown Source)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
Any Clues how this has to be fixed.???? -
Error while downlaoding smartform into Application server in PDF format
Hi friends,
I am downlaoding Smartform to Application server in PDF format. getting below dump while executing
OPEN DATASET p_filename FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
TRANSFER i_tline TO p_filename
CLOSE DATASET p_filename.
if i add " IGNORING CONVERSION ERRORS " after ENCODING DEAFULT then i am not getting dump and pdf file is creating but i am not able to see LOGO in SAP Application server ( downlaoded back from application server to my pc and checked it).
DUMP:
here i am getting dump saying that : You cannot convert the character set
Runtime Error CONVT_CODEPAGE
Exception CX_SY_CONVERSION_CODEPAGE
What happened?
While a text was being converted from code page '4102' to '4110', one of
the following occurred:
- an character was discovered that could not be represented in one of
the two code pages;
- the system established that this conversion is not supported.
2 characters could not be represented (and thus could not converted).
If 2 = 0, a second or a different error has occurred.
Please Help.
ThanksHi
I think some basis related configuartions to be done
Try like this and inform me
A cyclic job runs, which processes the messages seen in the SOST queue.
Are you sure it's not the frequency of the cyclic job, rather than the
number of messages in the queue, that you are observing? In messages
that are queued and before the cyclic job runs, "wait for comm. service"
is the normal status.
If you mean that there are always 4 items queued in SOST regardless of
the cyclic send job, then I have no ideas. I would have thought there
was no way to do that.
when the send job runs it just never
picks them up & sends them, while it picks up many others. The send job
is somehow blind to these; no error message occurs. In this case, I
'delete' them from the queue (in SOST) and then 'undelete' (drop down
menu -> /Go to /Deleted Items) them and then re-queue them. THEN they
actually get picked up & sent when the next cyclic send job executes.
Regards
Pavan -
Oracle Parallel Server Overview PDF
The Oracle Parallel Server Overview PDF file seems corrupted; can't browse past page 1.
http://otn.oracle.com/deploy/availability/pdf/Oracle8i_Parallel_Server_Whitepaper.pdf
(from http://otn.oracle.com/deploy/performance/content.html)I'm not sure what you did wrong, but I got OPS working fine under SuSE Linux 7.0.
-
APEX 3.1.2 / HTTP-Server 10g PDF-Printing included
Hello together
I have APEX running on the Oracle HTTP-Server 10.1.3. Apex is working. Now i want to integrate PDF-printing. I found a lot of HowTos to realize that with a separate OC4J-Installation in an new $ORACLE_HOME.
Has anybody an Installation running with OC4J intergrated into the HTTP-Server (startable,stopable wirh opmnctl) ? Or an idea how to get that running ? Or a better Idea to print PDFs from APEX ?
Regards from SwitzerlandHello,
Carl Backstrom blogged about using Cocoon and Tomcat to integrate PDF-printing: http://carlback.blogspot.com/2007/03/apex-cocoon-pdf-and-more.html
Cocoon should be installable on an OC4J instance.
Another alternative is using PL/PDF: http://www.plpdf.com/
Hope this helps,
Dirk -
Link to folder on server from PDF
I'm trying to create a link within my interactive PDF (created in InDesign CS6) to a specific folder location on my company's server, in order to direct users to a set of logos. I've tried using an afp:// link to the folder but I get an error message telling me that Acrobat does not allow connection. Any ideas?
Don't think it can be done.
Best to upload the logos to your website and then insert the link to download them directly.
You can put an image of each logo and text like
[LOGO]
Screen/Web/Office
Printers
And provide jpegs/ai etc. files for them to download. -
How to open a byte array of pdf into acrobat reader dynamically..
hi,
my java program is connecting to a url and downloading various file(.pdf,.xml format) into hard-disk. now the requirement is if user select "Preview" button, then file is downloaded and opened with appropriate application(acrobat reader for .pdf file) but not saved anywhere in hard-disk ...
any idea, any hint any help is welcomed..
thanks in advance..hi friends,
i got the solution. i am using one external api of adobe acrobat, through which i am able to stream pdf document in form of byte array into acrobat viewer,without writing data in any file.
so my work is done.. :) -
.fdf from server and .pdf as flex resource
I'm building an internal app, so I'm not concerned about initial size. Once developed it should be cached on the local box.
I have to generate various 30 page PDF's that are already defined. I can populate them on the server using a tool like pdftk and then download them to my flex app just like any PDF.
I would like to only download the .fdf file and have the .pdf file as a resource internal to my flex 4 app. The purpose is to conserve bandwidth when the app is running at remote facilities.
It seems like the .fdf has an internal pointer to the .pdf, but I cannot seem to get it to work. I'm guessing that the path is relevant to the directory that contains my .swf.
Has anyone done this or can point me in the right direction???
A snippet of my .fdf file follows:
%FDF-1.2
1 0 obj
<</FDF<</F(/templates/NC.pdf)/Fields[
<</T(form1[0].#pageSet[0].MasterPage1[0].Resident[0])/V(Minnie Mouse)>>
<</T(form1[0].#pageSet[0].MasterPage1[0].NumericIdentifier[0])/V(1234567)>>
<</T(form1[0].#pageSet[0].MasterPage1[0].Date[0])/V(today)>>
<</T(form1[0].Page38-SectionZ[0].Z0500[0].Z0500Body[0].Z0500BYear[0])/V(1999)>>
]>>>>
endobj
trailer
<</Root 1 0 R>>
%%EOFFWIW I gave up on the idea. Using the fdf to launch the PDF has a major weakness (for my needs) in that it still allows the user to edit the form. I just want them to be able to print it. Perhaps I could defiene it as not editable, but I've got it working where I merge the two data streams on the backend and return the PDf as the response.
-
Render framemaker files in Documentum Content Server to pdf
Is there a third party tool available which can communicate with Documentum Document transformation service to convert a framemaker file or book to pdf?
Hi Sonia,
Refer the documentum server link below for required information
http://docs.oracle.com/cd/E10502_01/doc/search.1018/e10418/cmsources.htm
Hope this is useful.
Regards,
Deepak Kori -
Using CRX as Document Server for PDF and Office Docs
Hi All,
I my organization we have got lots of PDF , Word,PPT and video on stored on CQ server along with webpage. I am suggesting it to store webpages on CQ/AEM server and rest of the documents on CRX server and access those documents via Sling URL’s.
Is anyone foreseeing any risk in this approach or should we store all documents in another AEM server. We just need to use indexing, ACL’s on these documents and my understanding is standalone CRX can do this job .
Thanks,
ManishThanks for your response.
Yes i mean separate CRX to store document high level architecture will be as below
I have done the POC all working fine. By moving contents to another CRX server we will significantly reduce completion time of indexing, backup , garbage collector and tar optimization jobs on AEM server as a result we will improve performance and reliability. I am wondering how others companies are managing large CQ repository in other organization. -
InDesign server export .pdf, AND save .indd
Hey all,
Just a quick question. Is it possible to script InDesign server to export a .pdf to a certain folder location AND save the original .indd file to another folder location all automatically?
Cheers,
Steve.Sure. I suppose the typical way to tell it where to put the files would be to pass the paths as parameters to the script and retrieve them with app.scriptArgs.get(). See the SDK for more info.
Jeff
Maybe you are looking for
-
How to import mts from hard drive
Hello, I'm looking for some help on importing .mts AVCHD files into FCP X direct from my hard drive. I have a lot of files on the drive that aren't on my Panasonic GH2 memory card so I can't import direct from camera. If I try to put the files back o
-
My Mac Pro keeps restarting & I don't know why
Hi, It's happened three times now, twice when I was asleep and once when I actually witnessed it happen. When I saw it happen, it was as if someone had pulled the power plug out of the back, it was that quick. I was typing along and suddenly zap, i
-
Is TM in Snow Leopard Compatible Excel 2004?
I had a problem upgraded from Leopard to Snow Leopard this weekend that required me to execute PRAM. Now that I have got it done I can't preview Excel files in Time Machine. I can preview .pdf files and I can restore Excel files but when I click on a
-
Hi there Been trying to work out the best backup strategy. I have been using a 1TB TC to back up an iMac and Macbook (about 300gb each) using Time Machine. Have come to the conclusion that it's not right for me as I don't need to access old versions
-
I'm trying to use "match protocol bgp" command in a class-map in order to classify all BGP routing traffic, but it doesn't match. When I try to do the same using an ACL matching tcp 179 in the same class-map configuration it works. Any suggestion? Re