# `inject`
Inject code at start or end of page content streams
## Usage
> pdftl `` `inject` `...` `output` `` `[]`
## Details
Add PDF code `` at head or tail of page content streams for pages.
` = [...] (head|tail) `
where `` is a page specification (default: all pages),
and `` is a PDF content stream fragment to instead at
either the head or tail of those pages' streams.
**Warning:** This can easily break content streams.
The resulting PDF files will not render as expected.
## Examples
> Scale up page content by 2x:
```
pdftl in.pdf inject head '2 0 0 2 0 0 cm' output out.pdf
```
**Tags**: in_place, dangerous, content_stream
*Source: pdftl.operations.inject*
*Read online: [https://pdftl.readthedocs.io/en/stable/operations/inject.html](https://pdftl.readthedocs.io/en/stable/operations/inject.html)*
*Type: Operation*