Hi All

I am trying to merge multiple 'pdf images' into a single pdf document.

All well so far.

I need to rotate some of the images (where the height > width).

In my code (see below) sourceXStart and sourceYStart are the x, y
co-ordinates.


  if (rotation == 90 || rotation == 270)
    {
    // place the image at x, y and rotate it 90 deg
    cb.AddTemplate(page, 0, -1f, 1f, 0, 0, theHeight);
    }
  else
    {
    // place the image at x,y
    cb.AddTemplate(page, sourceXStart, sourceYStart);
    }


This rotates the image however I cannot place the image where I want it. All
rotated images appear at the bottom of the page stacked up on each other

Can someone please tell me what I am missing ?

Many thanks in advance for any help offered

Regards

Iain
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

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