PDF Generating Tool Support Forum

HOME   Login   Register    Search

  Subject: response content type
   PostPosted: 22 Jun 2017, 20:18 
I use Pd4ML tag library which in fact has the first few lines as
<%@ taglib uri="http://pd4ml.com/tlds/pd4ml/2.6" prefix="pd4ml"
%><%@page contentType="text/html; charset=ISO8859_1"

I am wondering if the contentType should be "application/pdf" instead ??
A http request hits on one of our controllers which sends the response as a JSP that uses PD4ML.
But the problem is the response is received as (content type) application/octet-stream because of which the PDF does not render. Is there a way to fix this? or is there a way in PD4ML tag library to set content type elsewhere in one of the tags?

Thanks for your help. I appreciate.

  Subject: Re: response content type
   PostPosted: 28 Jun 2017, 20:54 
Never mind. I have got this working :)

[Reply]     [ 2 posts ] 

Copyright ©2004-10 zefer|org. All rights reserved. Bookmark and Share