Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
JSP - A mailing list about Java Server Pages specification and reference
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Subject: Servlet : Session invalidate
Oracle Connection Pooling in 3 2 2
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Subject: Running a Simple JMS Example
Tomcat and webapplication specific java library path
Mapping in workers2 properties
org apache jasper JasperException
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action
   MESSAGE
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
Value attribute of <html:checkbox
url string for connecting jboss to oracle
javax servlet ServletException: BeanUtils populate
5 0 18: Windows XP Pro vs Windows 2000
HTTP Status 404 The requested resource is not available
 
Replacing PDF stream content

Replacing PDF stream content

2007-11-08       - By Ismael F

 Back
Reply:     1     2     3  


Thanks a lot,

  PRStream obj_PRstream = (PRStream)obj_element_dic;
  obj_PRstream.setData(obj_bytes_value);

It works fine!

I tried the inverse way to read a PDF stream content and I found that with
   PdfReader.getStreamBytesRaw(obj_PRStream_element);
Filter is NOT applied, and with
   PdfReader.getStreamBytes(obj_PRStream_element);
Filter is applied

That's great!

Thanks again!
> Date: Wed, 7 Nov 2007 12:15:24 +0100> From: bruno@(protected)> To: itext
-questions@(protected)> Subject: Re: [iText-questions] Replacing PDF
stream content> > Ismael F wrote:> > It's possible to make a direct replacement
of stream bytes without > > changing references?> > Yes, you get the PRStream
object from the PdfReader,> and the use the setData method to change the stream
.> As PdfStream extends PdfDictionary, you can also add> keys to the stream
dictionary (or change them).> > This is all done in PdfReader. If you use this
reader> object in PdfStamper or PdfCopy, you'll see that the> object is changed
.> br,> Bruno> > -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -----
-- ---- --> This SF.net email is sponsored by: Splunk Inc.> Still grepping
through log files to find problems? Stop.> Now Search log events and
configuration files using AJAX and a browser.> Download your FREE copy of
Splunk now >> http://get.splunk.com/> __ ____ ____ ____ ____ ____ ____ ____ ___
__ ___> iText-questions mailing list> iText-questions@(protected)>
https://lists.sourceforge.net/lists/listinfo/itext-questions> Buy the iText
book: http://itext.ugent.be/itext-in-action/
__ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ __
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
Thanks a lot,<BR>
&nbsp;<BR><FONT size=2>
<P align=left>&nbsp;&nbsp; PRStream obj_PRstream = (PRStream)obj_element_dic;<
/P>
&nbsp;&nbsp; obj_PRstream.setData(obj_bytes_value);<BR></FONT>
&nbsp;<BR>
It works fine!<BR>
&nbsp;<BR>
I tried the inverse way to read a PDF stream content and I found that with<BR>
<P align=left><FONT size=2>&nbsp;&nbsp;&nbsp; PdfReader.<I>getStreamBytesRaw</I
>(obj_PRStream_element);</FONT></P>
<P align=left><FONT size=2>Filter is NOT applied, and with&nbsp;</P></FONT>
<FONT size=2>&nbsp;&nbsp;&nbsp; PdfReader.<I>getStreamBytes</I>(obj_PRStream
_element);</FONT><BR>
<P align=left>Filter is applied</P>
<P align=left>&nbsp;</P>
<P align=left>That's great!</P>
<P align=left>&nbsp;</P>
<P align=left>Thanks again!</P>
<P align=left><BR>&gt; Date: Wed, 7 Nov 2007 12:15:24 +0100<BR>&gt; From: bruno
@(protected)<BR>&gt; To: itext-questions@(protected)<BR>&gt; Subject:
Re: [iText-questions] Replacing PDF stream content<BR>&gt; <BR>&gt; Ismael F
wrote:<BR>&gt; &gt; It's possible to make a direct replacement of stream bytes
without <BR>&gt; &gt; changing references?<BR>&gt; <BR>&gt; Yes, you get the
PRStream object from the PdfReader,<BR>&gt; and the use the setData method to
change the stream.<BR>&gt; As PdfStream extends PdfDictionary, you can also add
<BR>&gt; keys to the stream dictionary (or change them).<BR>&gt; <BR>&gt; This
is all done in PdfReader. If you use this reader<BR>&gt; object in PdfStamper
or PdfCopy, you'll see that the<BR>&gt; object is changed.<BR>&gt; br,<BR>&gt;
Bruno<BR>&gt; <BR>&gt; -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---
-- ---- ---- ----<BR>&gt; This SF.net email is sponsored by: Splunk Inc.<BR>&gt;
Still grepping through log files to find problems? Stop.<BR>&gt; Now Search log
events and configuration files using AJAX and a browser.<BR>&gt; Download your
FREE copy of Splunk now &gt;&gt; http://get.splunk.com/<BR>&gt; __ ____ ____ __
__ ____ ____ ____ ____ ____ ____<BR>&gt; iText-questions mailing list<BR>&gt;
iText-questions@(protected)<BR>&gt; https://lists.sourceforge.net
/lists/listinfo/itext-questions<BR>&gt; Buy the iText book: http://itext.ugent
.be/itext-in-action/<BR></P><br /><hr />Express yourself instantly with MSN
Messenger! <a href='http://clk.atdmt.com/AVE/go/onm00200471ave/direct/01/'
target='_new'>MSN Messenger</a></body>
</html>
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -----
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
__ ____ ____ ____ ____ ____ ____ ____ ____ ____
iText-questions mailing list
iText-questions@(protected)
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

©2008 junlu.com - Jax Systems, LLC, U.S.A.