Well how can i use pdfsmartcopy?
I don't want to copy the page but I do have some images that get used over
again. I made the header into a global function so it generates only once
now but for other parts the information might be different but the image
might be the same. So can i use pdfsmartcopy to insert images that might be
the same.


or do i need to insert images to like a crc checker ?


1T3XT info wrote:
> 
> FlyingBuzz wrote:
>> Is there a way to make itext output the data into like a buffer stream
>> and
> 
> iText can write PDF syntax to any OutputStream;
> for instance to a ByteArrayOutputStream.
> 
>> when it finish it loads the buffer stream and compress it than and make a
>> output stream of the compressed pdf?
> 
> Compressing the content streams after the fact doesn't make
> any sense, why not do it right away?
> 
> What you could do, is check for duplicate stuff. For instance:
> like I said earlier: if you are reusing the same image over and
> over again. PdfSmartCopy does something like this. However, reusing
> the same image over and over again is considered improper use of iText.
> I know that this happens if you use the PdfCopy example in chapter 2
> of the book, but that's what I wrote PdfSmartCopy for.
> 
> It's more difficult and you'll be on your own to implement it, but
> you could also consider merging the different subsets of the same
> font into one font subset. That would reduce the file size too.
> 
> Note that you are still talking about compression, but... that's
> not the problem you're facing when you want to reduce file size;
> unless you're talking about full compression (as Leonard pointed
> out). That's also supported in iText, but you have to indicate
> that you want full compression explicitly.
> -- 
> This answer is provided by 1T3XT BVBA
> 
> -------------------------------------------------------------------------
> Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
> Studies have shown that voting for your favorite open source project,
> along with a healthy diet, reduces your potential for chronic lameness
> and boredom. Vote Now at http://www.sourceforge.net/community/cca08
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 
> Do you like iText?
> Buy the iText book: http://www.1t3xt.com/docs/book.php
> Or leave a tip: https://tipit.to/itexttipjar
> 
> 

-- 
View this message in context: 
http://www.nabble.com/how-come-itext-pdf-are-a-lot-better-than-if-i-resave-them-in-adobe--tp18301100p18319670.html
Sent from the iText - General mailing list archive at Nabble.com.


-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar

Reply via email to