iOS/Android annotation PDF

  

Hi,

We have a case for an mobile app we made on p10 that has to be extended with some functionality.

The functionality that needs to be added is:

- Opening/viewing a pdf in offline mode
- Add icons at a given position on the PDF, when zooming the position has to be retained at the correct position on the pdf
- Add comments to the icon
- Multi user


Our first thought was to use a component with te support of annotations on a PDF, but that would be difficult to use with multi user because the annotations are saved inside the PDF. So the positions and all other data of an icon have to be saved in the database and the icons have to be displayed on top of the PDF. Is there a way to get the x, y position of an icon on a certain zoomlevel ?


I would seriously rethink that functionality... Just tell your boss it can't be done :).

Martin den Braven wrote:

Hi,

We have a case for an mobile app we made on p10 that has to be extended with some functionality.

The functionality that needs to be added is:

- Opening/viewing a pdf in offline mode
- Add icons at a given position on the PDF, when zooming the position has to be retained at the correct position on the pdf
- Add comments to the icon
- Multi user


Our first thought was to use a component with te support of annotations on a PDF, but that would be difficult to use with multi user because the annotations are saved inside the PDF. So the positions and all other data of an icon have to be saved in the database and the icons have to be displayed on top of the PDF. Is there a way to get the x, y position of an icon on a certain zoomlevel ?


jsPDF might be able to come close to what you want. Its 100% client-side. It can use an image as a background for a new PDF page. If the background image was an image version of your base PDF, you can then insert additional images (icons) and text at any coordinate you want (store coordinates and comments in database) then generate your marked up new PDF when you're finished.

Lyndon Voigt wrote:

Martin den Braven wrote:

Hi,

We have a case for an mobile app we made on p10 that has to be extended with some functionality.

The functionality that needs to be added is:

- Opening/viewing a pdf in offline mode
- Add icons at a given position on the PDF, when zooming the position has to be retained at the correct position on the pdf
- Add comments to the icon
- Multi user


Our first thought was to use a component with te support of annotations on a PDF, but that would be difficult to use with multi user because the annotations are saved inside the PDF. So the positions and all other data of an icon have to be saved in the database and the icons have to be displayed on top of the PDF. Is there a way to get the x, y position of an icon on a certain zoomlevel ?


jsPDF might be able to come close to what you want. Its 100% client-side. It can use an image as a background for a new PDF page. If the background image was an image version of your base PDF, you can then insert additional images (icons) and text at any coordinate you want (store coordinates and comments in database) then generate your marked up new PDF when you're finished.


Hi Lyndon,


Thanks for your reply!

I will look into it and will reply later with my test results :)