General ⇒ PDF Generation: Security and Adobe Tabs
PDF Generation: Security and Adobe Tabs
When I compile to a PDF, the PDF always has all the Book marks expanded.
This is annoying as I have a huge number of sections/chapters etc.
How do I tell latex to generate a PDF with bookmarks collapsed as in "collapse top-level bookmarks"?
Secondly, how do I make the PDF "SECURE" so people cant print it or copy and paste from it?
Thirdly, is there an easy way to get "DRAFT" written horizontally across each page (in v faint ink)?
thanks"
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
PDF Generation: Security and Adobe Tabs
Code: Select all
\usepackage[bookmarksopenlevel=0]{hyperref}
I don't think it's possible to secure a PDF just using pdfLaTeX, and I'd advise against doing this. If someone really wants to copy from your text, they can always OCR it, and most DRM methods can be removed. Plus, you're doing a true disservice to people who need to alter your document to make it useable on a portable screen, or pass the text to a text to speech system because of a disability, and so on. But look at tools like pdftk or qpdf if you really must do this.
As for getting draft written across each page, look at packages like draftmark, draftcopy, watermark, draftwatermark or xwatermark. I use draftwatermark myself.
Re: PDF Generation: Security and Adobe Tabs
I am having problems.
thanks!
PDF Generation: Security and Adobe Tabs
Code: Select all
\usepackage{type1cm}
\usepackage{eso-pic}
\usepackage{color}
\makeatletter\AddToShipoutPicture{%
\setlength{\@tempdimb}{.5\paperwidth}%
\setlength{\@tempdimc}{.5\paperheight}%
\setlength{\unitlength}{1pt}%
\put(\strip@pt\@tempdimb,\strip@pt\@tempdimc){%
\makebox(0,0){\rotatebox{45}{\textcolor[gray]{0.75}%
{\fontsize{6cm}{6cm}\selectfont{DRAFT}}}}%
}%
}
\makeatother
this seems to work.
Also, do you have any links to the SECURE packages you recommended? I couldnt find any.
thank you