On Sun 21 Jan 2024 at 13:11:46 (-0500), gene heskett wrote:
> Most informative. thank you a lot Eike. I have, on another workspace
> after installing it "xournal" has opened that pdf, I have enabled the
> add annotations function but not killed a tree to test print.  I see
> both "print" and "Export as pdf" in the file menu.

In the past, I would export it.

> Are you saying that I should do the annotations, then export to pdf,
> in order to overlay my notes over that file and then print that
> exported pdf in sufficient copies for the AG office's slaves. Or if
> its correct, email the exported pdf back to them. I think that may be
> the expected response from me.

I would encrypt it before returning it. I would use the password
that encoded the original PDF, which contained sensistive information.
Obviously you're not in that situation, but are the one who has to
inform the recipient of the password /before/ sending the document.

I would decode their documents with:
  $ pdftk pw-protected.pdf input_pw pass\!word cat output unprotected.pdf
and encode mine with:
  $ pdftk unprotected.pdf cat output pw-protected.pdf user_pw pass\!word

The attached is a laborious method for generating and adding
annotations, long since replaced by either digital signing
or document uploading.

Cheers,
David.
1) Decrypt the PDF to be annotated.

2) Preparation of transparent text annotation:

$ inkscape

Text>Text and Font
if necessary.

click on text tool (F8)
place the cursor on the page
write the text
click on select tool (F1)

File>Document Properties
click on Background
set everything to zero (especially Alpha) in the background menu
click on Resize Page to Content...
click on Resize Page to Drawing or Selection
click on X (may/may not be necessary).

File>Save As
Plain SVG

3) Preparation of transparent image annotation:

Make a dark copy.

$ inkscape

File>Import
select (PNG) file
select Embed
place the image.

Path>Trace Bitmap
press Update?
select Multiple Scans 2-8, Colours, Remove Background
leave Smooth, Stack scans
press Update
press OK

select the main picture (which is two) and drag one away

If it's not clear which is which,
select
Right click>Object Properties
select each in turn, and the one wanted is the "path", not the "image".

select the path one,
File>Document Properties
click on Background
set everything to zero (especially Alpha) in the background menu
click on Resize Page to Content...
click on Resize Page to Drawing or Selection
click on X (may/may not be necessary)

File>Save As
Plain SVG

4) To capture a bit of text:

Type it in xterm, emacs, anywhere.
If the text is white on black, select it to reverse the colours.
Grab PNG and drag round it rather than grabbing the whole window.

5) Following "PDF annotation" in file:///usr/share/doc/xournal/manual.html ...

$ xournal

File>Annotate PDF
tick "Attach file to the journal",
open the PDF.

Tools>Image
click top-left corner of required placing,
open the BMP,GIF,JPG,PBM,PGM,PNG,PPM,SVG,TIF,XBM,XPM image file
(may need to click on All Files),
resize and position (NB aspect-ratio is not preserved).

Tools>Select Region
allows readjustment of a previously placed image.

File>Export to PDF

Reply via email to