Hello,
The hardest part was going through the PDF spec.  Up to that point,  
Bruno's and Leonard's comments about "that's not what PDFs were  
designed to do" didn't really make sense.
They do now!!  Starting from scratch and knowing nothing about PDFs  
and little about iText or PdfBox, it took a couple months.  I don't  
address the issue of searching or hidden text showing up, because it  
doesn't happen in this particular environment.  It's strictly a  
generate and print environment.  I'm now retrofitting all of the docs  
to be created and generated on the fly using Seam's iText tag  
library.   It works really well, but it's not complete, so I run into  
issues when trying to create a TOC ;-).   This just goes to Leonard's  
point that I'm (and you) trying to shoe horn a PDF into something that  
really doesn't fit.   That's why I'm going back and taking a different  
approach.

-robert.


On Jun 15, 2009, at 7:26 AM, Leonard Rosenthol wrote:

> And what happens when the user selects the text to copy/paste?  Or  
> they do a search on it and the "hidden" text all of a sudden appears  
> - potentially messing up their search :(.
>
> It's _NOT_ what PDF was designed for - you are fighting and uphill  
> battle...
>
> To do this project CORRECTLY is (easily) a 1-2 man year project.  To  
> do something like what mdesignz suggests is probably half that  
> (though he can comment on how long it took him).
>
> Good luck!
>
> Leonard
>
> -----Original Message-----
> From: beppecosta [mailto:beppeco...@yahoo.it]
> Sent: Monday, June 15, 2009 8:52 AM
> To: itext-questions@lists.sourceforge.net
> Subject: Re: [iText-questions] Put-Replace text at x,y
>
>
> Btw it is non necessary to REPLACE the existing marker - because  
> this can be
> made invisible (for example in ultra small font and white color) but  
> I only
> have to PUT text or image at x,y corresponding to the marker.
>
> I agree with Bruno that there should be a different approach, but our
> "designers" still have dozen of xls and word modules and furthermore  
> won't
> never agree to use a design tool different from those they have and  
> know.
>
> Giuseppe.
>
> mdesignz wrote:
>>
>> I had to do a similar thing for a large insurance company that had
>> thousands of PDFs created using Word, Quark, etc., and needed them
>> converted to fillable PDFs.
>> I had to find all of the text and graphics (mostly long horizontal
>> lines) and drop fields on top of them, and then build a UI component
>> to allow them to associate the
>> fields with stuff out of the database.   It works well, but it's not
>> something terribly easy to do.   I had to use iText and Apache's
>> PDFBox to pull it off.
>> You'll need to download the PDF spec and become familiar with how a
>> PDF is constructed.  Probably a few weeks worth, but it's doable.
>>
>>
>> On Jun 15, 2009, at 2:52 AM, beppecosta wrote:
>>
>>>
>>> Hello,
>>>
>>> is there a way to scan a pdf for given string markers (like "#1",
>>> #2", or
>>> similar patterns) and get their x,y coordinates ?
>>>
>>> Step 2 would be to put some text or images or some other content
>>> right over
>>> these markers.
>>>
>>> Or - are there some other suggestions - to automate this process ?
>>>
>>> Thanks.
>>> Giuseppe.
>>> -- 
>>> View this message in context:
>>> http://www.nabble.com/Put-Replace-text-at-x%2Cy-tp24030945p24030945.html
>>> Sent from the iText - General mailing list archive at Nabble.com.
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Crystal Reports - New Free Runtime and 30 Day Trial
>>> Check out the new simplified licensing option that enables unlimited
>>> royalty-free distribution of the report engine for externally facing
>>> server and web deployment.
>>> http://p.sf.net/sfu/businessobjects
>>> _______________________________________________
>>> iText-questions mailing list
>>> iText-questions@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/itext-questions
>>>
>>> Buy the iText book: http://www.1t3xt.com/docs/book.php
>>> Check the site with examples before you ask questions:
>>> http://www.1t3xt.info/examples/
>>> You can also search the keywords list:
>>> http://1t3xt.info/tutorials/keywords/
>>
>> The human mind is an iterative processor, it never does anything  
>> right
>> the first time.  What it does well is to make improvements on every
>> iteration (deMarco)
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Crystal Reports - New Free Runtime and 30 Day Trial
>> Check out the new simplified licensing option that enables unlimited
>> royalty-free distribution of the report engine for externally facing
>> server and web deployment.
>> http://p.sf.net/sfu/businessobjects
>> _______________________________________________
>> iText-questions mailing list
>> iText-questions@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/itext-questions
>>
>> Buy the iText book: http://www.1t3xt.com/docs/book.php
>> Check the site with examples before you ask questions:
>> http://www.1t3xt.info/examples/
>> You can also search the keywords list:
>> http://1t3xt.info/tutorials/keywords/
>>
>>
>
> -- 
> View this message in context: 
> http://www.nabble.com/Put-Replace-text-at-x%2Cy-tp24030945p24034094.html
> Sent from the iText - General mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensing option that enables unlimited
> royalty-free distribution of the report engine for externally facing
> server and web deployment.
> http://p.sf.net/sfu/businessobjects
> _______________________________________________
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
> Buy the iText book: http://www.1t3xt.com/docs/book.php
> Check the site with examples before you ask questions: 
> http://www.1t3xt.info/examples/
> You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
>
> ------------------------------------------------------------------------------
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensing option that enables unlimited
> royalty-free distribution of the report engine for externally facing
> server and web deployment.
> http://p.sf.net/sfu/businessobjects
> _______________________________________________
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
> Buy the iText book: http://www.1t3xt.com/docs/book.php
> Check the site with examples before you ask questions: 
> http://www.1t3xt.info/examples/
> You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

The human mind is an iterative processor, it never does anything right  
the first time.  What it does well is to make improvements on every  
iteration (deMarco)




------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to