# Editing and syncing a pdf file on Mac and iPad through iBooks

I'd like to work on a draft pdf file on both a Mac and an iPad and see the edits syncing invisibly in the background.

I create a new directory

mkdir ~/latex


and save the following latex in ~/latex/lipsum-novel.tex

\documentclass{report}
\usepackage{lipsum}

\begin{document}
\lipsum[1-30]
\end{document}


then typeset it

pdflatex lipsum-novel


Now I have the pdf file ~/latex/lipsum-novel.pdf

I drag that pdf file from Finder to the iBooks window, and from this answer, we know that iBooks buries the pdf file in ~/Library/Containers/com.apple.BKAgentService/Data/Documents/iBooks/Books

I'm guessing that I can now delete ~/latex/lipsum-novel.pdf

rm ~/latex/lipsum-novel.pdf


All good. iBook took over the draft pdf. My objective now is to modify this draft pdf on both OS X and on an iPad (with the modifications synced in the background).

Before I even worry about syncing to iBooks on an iPad, I start by striking through some text.

Already Preview warns me that (as with all OS X native files such as pdf files) "The original document can't be changed."

Fine. I save the modified file in ~/Documents/lipsum-novel copy.pdf.

Now already iBooks has gone out of sync with Preview. If I exit iBooks and reload, I will be looking at the pdf file buried by iBooks, not on the file I edited. If I add a new strikethrough

That hardly helps. I've just introduced yet a third pdf file.

How do I get iBooks to save my edits in its own copy (and sync it with an iPad).