Class visibility issues

Hi,

I am using pdf2.5.0 and realised that aspose.pdf.HttpResponse is not a public class and hence unble to import/reference it. Help us to resolve this ASAP,show stopper for our developement, appreciate your immediate response.

Thanks


This message was posted using Aspose.Live 2 Forum

Hi,

I have tested the scenario and I am able to reproduce the same problem. For the sake of correction, I have logged it in our issue tracking system as PDFJAVA-16582. We will investigate this issue in details and will keep you updated on the status of a correction.

We apologize for your inconvenience.

Hello,


what is your use case?
In case you want to generate pdf from servlet container, to set headers, etc. You can use pdf.getBuffer() method to get your .pdf as byte array. Note, this method returns pdf w/o embedded fonts. If you want pdf file with embedded fonts, you can use
pdf.save("");
byte[] res = pdf.getBuffer();