Hello,
I want to shrink all the contents (including forms, links, annotations.. )
into a standard page size and then add footer and headers to this document.
This topic has been previously discussed in this thread along with possible
solutions
http://www.nabble.com/How-to-Shrink-Content-and-Add-Margins-td11547554.html#a11547554
"However, your content is still "anchored" at the origin of the *page* (0,0)
- so it stays in the lower left regardless of how big (or small) you make
that rect. Therefore, you need to "shift" (transform) the contents. The
easiest way to do that, if you knew PDF internals, would be to prepend the
content stream with the appropriate 'cm' operation (probably a combination
of scale and translate). ..."- Leonard
Rosenthol<http://www.nabble.com/user/UserProfile.jtp?user=28132>
I am playing with this idea and starting digging into the PDF specs
(PDF32000_2008.pdf). From the specs..
"cm=>Modify the current transformation matrix (CTM) by concatenating the
specified matrix (see 8.3.2, "Coordinate Spaces"). Although the operands
specify a matrix, they shall be written as six separate numbers, not as an
array."
Am i looking for the right thing given the problem context?
Some pointers or hints as how to accomplish this in itext would be very
helpfull.
I have THE book, in section 14.1.2 Defining Page boundaries, there is a
discussion about different types of boxes and their details.
I am not sure if/how to relate these 2 things together(if at all it will
help in solving the issues) and have a working solution, to shrink pages
with all content into a standard page size.
i will continue to dig into the specs for more about 'cm'. Please help if
you have the faintest idea about how to solve this issue consistently and
reliably. I am open to contributing this code to the community if it is not
already there in iText.
Thanks in advance.
Cheers,
Subhro.
<http://www.nabble.com/user/UserProfile.jtp?user=28132>
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.1t3xt.com/docs/book.php