At this moment I've found one solution wich is not ideal but should works.

My idea was : 
1) Get the information from an Rectangle, like this : 

Rectangle rect = new Rectangle(0, 650, 300, 750);
        
        RenderFilter filter = new RegionTextRenderFilter(rect);
        TextExtractionStrategy strategy;
        for (int i = 1; i <= reader.getNumberOfPages(); i++) {
            strategy = new FilteredTextRenderListener(new
LocationTextExtractionStrategy(), filter);
            
            
            String adresse = PdfTextExtractor.getTextFromPage(reader, i,
strategy);
...

2) Then put a blank image on the existing information on the left

3) Finally, rewrite de content from the step 1) on the right.

It's ideal. What I would like is the browse the many text fields in this
Rectangle, and then change their position. 

If any body has some better ideas or code...



--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/How-to-move-some-text-in-an-existing-PDF-from-left-to-right-tp4659854p4659855.html
Sent from the iText - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to