Question: I have a problem, I need to add a `.jar` file into android dependencies folder in eclipse. I have looked for similar stack posts but none of them worked for me. 

I have tried pasting the jar file into the libs folder but it gives an error 

> 
> cannot copy the clipboard content into the selected items"
> 
> 
> 

I have to deliver my work by tomorrow. Please help. Thanks in advance

Answer: 
I'm adding an extra answer in answer to the extra question in the comments of the previous answer:

When you have a `PdfWriter` instance named `writer`, you can set the Viewer preferences like this:

```
writer.ViewerPreferences = viewerpreference;

```

In this case, the `viewerpreference` is a value that can have one of the following values:

* `PdfWriter.PageLayoutSinglePage`
* `PdfWriter.PageLayoutOneColumn`
* `PdfWriter.PageLayoutTwoColumnLeft`
* `PdfWriter.PageLayoutTwoColumnRight`
* `PdfWriter.PageLayoutTwoPageLeft`
* `PdfWriter.PageLayoutTwoPageRight`

See the [PageLayoutExample](http://itextpdf.com/examples/iia.php?id=228) for more info.

You can also change the page mode as is shown in the [ViewerPreferencesExample](http://itextpdf.com/examples/iia.php?id=229). In which case the different values are "OR"-ed:

* `PdfWriter.PageModeFullScreen`
* `PdfWriter.PageModeUseThumbs`
* `PdfWriter.PageLayoutTwoColumnRight | PdfWriter.PageModeUseThumbs`
* `PdfWriter.PageModeFullScreen | PdfWriter.NonFullScreenPageModeUseOutlines`
* `PdfWriter.FitWindow | PdfWriter.HideToolbar`
* `PdfWriter.HideWindowUI`

Currently, you've only used the PrintPreferences example from the official documentation:

```
writer.AddViewerPreference(PdfName.PRINTSCALING, PdfName.NONE);
writer.AddViewerPreference(PdfName.NUMCOPIES, new PdfNumber(3));
writer.AddViewerPreference(PdfName.PICKTRAYBYPDFSIZE, PdfBoolean.PDFTRUE); 

```

But in some cases, it's just easier to use:

```
writer.ViewerPreferences = viewerpreference;

```

Note that the official documentation is the book ["iText in Action - Second Edition."](http://itextpdf.com/book/) The examples are written in Java, but you can find the C# version [here](http://support.itextpdf.com/node/178). There is a new book in the works called "The ABC of PDF", but so far only 4 chapters were written. You'll find more info here: <http://itextpdf.com/learn>

The part about the different options to create a `PdfDestination` is already present in "The ABC of PDF".

As for setting the language, this is done like this:

```
stamper.Writer.ExtraCatalog.Put(PdfName.LANG, new PdfString("EN"));

```

The result is shown in the following screen shot:

![enter image description here](https://i.stack.imgur.com/tnup8.png)

As you can see, there is now a `Lang` entry with value `EN` added to the catalog.
The two items *Show = Bookmarks Panel and Page* and *Page Layout = Continuous* are controlled one layer up from the `ViewerPreferences` in the document's `/Catalog`. You can get to this via:

```
stamper.Writer.ExtraCatalog

```

In your case you're looking for:

```
// Acrobat's Single Page
stamper.Writer.ExtraCatalog.Put(PdfName.PAGELAYOUT, PdfName.ONECOLUMN);
// Show bookmarks
stamper.Writer.ExtraCatalog.Put(PdfName.PAGEMODE, PdfName.USEOUTLINES);

```

The items *Magnification = Fit Width* and *Open to Page number = 1* are also part of the `/Catalog` but in a special key called `/OpenAction`. You can set this using:

```
stamper.Writer.SetOpenAction();

```

In your case you're looking for:

```
//Create a destination that fit's width (fit horizontal)
var D = new PdfDestination(PdfDestination.FITH);

//Create an open action that points to a specific page using this destination
var OA = PdfAction.GotoLocalPage(1, D, stamper.Writer);

//Set the open action on the writer
stamper.Writer.SetOpenAction(OA);

```