Re: Attachment not always visible

2018-02-07 Thread Robert Nemet
Hi, Ha, that was actually a problem. Thank you. When I fixed that attachments become visible in browser reader regardless if I add or not: fs.setFileUnicode(attachment.getTitleWithExtension()); fs.setEmbeddedFileUnicode(ef); but I kept it. Robert //robert On Mon, Feb 5, 2018 at 5:56 PM, Tilm

Re: Attachment not always visible

2018-02-05 Thread Tilman Hausherr
I had another look at your "bad" file. It is really two files glued to each other. Please open your "bad" file with NOTEPAD++. You will find "%PDF" twice. Your code (which is not self-working) appended to an existing file. That would explain why the itext file has 66KB and the "bad" file has 15

Re: Attachment not always visible

2018-02-05 Thread Robert Nemet
No this does not help. Robert //robert On Sat, Feb 3, 2018 at 2:39 PM, Tilman Hausherr wrote: > Hi, > > Please make two additions below this code > > fs.setFile(attachment.getTitleWithExtension()); > fs.setEmbeddedFile(ef); > > add this: > > fs.setFileUnicode(attachment

Re: Attachment not always visible

2018-02-03 Thread Tilman Hausherr
Hi, Please make two additions below this code             fs.setFile(attachment.getTitleWithExtension());             fs.setEmbeddedFile(ef); add this: fs.setFileUnicode(attachment.getTitleWithExtension());             fs.setEmbeddedFileUnicode(ef); Please give feedback whether that helped. I

Re: Attachment not always visible

2018-02-02 Thread Robert Nemet
Hi, Here is working pdf: https://www.dropbox.com/s/4wzh3gcmzd1p8jo/working-old%20iText.pdf?dl=0 PdfBox file: https://www.dropbox.com/s/ymdrived4fphjrx/problematic-pdfbox2.pdf?dl=0 Thanks, Robert //robert On Thu, Feb 1, 2018 at 6:14 PM, Tilman Hausherr wrote: > Please upload both files to a sh

Re: Attachment not always visible

2018-02-01 Thread Tilman Hausherr
Please upload both files to a sharehoster, so that we can look at the differences with PDFDebugger, compare with the PDF specification, and decide whether it's a bug or not. Tilman Am 01.02.2018 um 09:33 schrieb Robert Nemet: Hi, I have two pdf files and they should be same( some text and a