public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] insert text onto a PDF
@ 2007-07-25  9:29 Thufir
  2007-07-25 11:29 ` Hans-Werner Hilse
                   ` (3 more replies)
  0 siblings, 4 replies; 16+ messages in thread
From: Thufir @ 2007-07-25  9:29 UTC (permalink / raw
  To: gentoo-user

I found this via google:

"The Tools

The tools I found are Xfig and flpsed. Xfig is a general image editor,
while flpsed is specifically for marking up PDF files. It's important
to note that neither of these programs can actually edit PDF files.
Rather, they can be used to add new text and graphics on top of the
file. This is generally all you need for filling out typical business
forms such as contracts. "

<http://www.linux.com/articles/113907>


I just want to add text on top of a PDF, resulting in a new file.  I'm
not concerned with encryption, authorization, nor really "editing" the
PDF itself -- just ending up with a new PDF with my text on top.

I read something about a java app to do this in a magazine a few
months, but didn't keep the article :(

IIRC it was on the cover to something like "linux format", one of
those linux magazines with the CD/DVD give-away, oversized.

I also came across:

<http://www.kde-apps.org/content/show.php/PDFedit?content=51831>  so,
if I install kde then I can have PDFedit?

There's also:

<http://overlays.gentoo.org/proj/sunrise> but it seems a bit complex,
masked packages and so forth (?).

Then, there's this ebuild just loitering around in cyberspace:

<http://atrey.karlin.mff.cuni.cz/~sanda/pdfedit/>  but it doesn't
appear on the gentoo website that I saw.

Finally, gimp can be used according to:

<http://www.wikihow.com/Edit-PDF-Files-in-Linux> but it's a bit vague.





So, what do other people do?






thanks,

Thufir


(emerging krita and kde presently)
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [gentoo-user] insert text onto a PDF
  2007-07-25  9:29 [gentoo-user] insert text onto a PDF Thufir
@ 2007-07-25 11:29 ` Hans-Werner Hilse
  2007-07-25 11:59 ` Philip Webb
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 16+ messages in thread
From: Hans-Werner Hilse @ 2007-07-25 11:29 UTC (permalink / raw
  To: gentoo-user

Hi,

On Wed, 25 Jul 2007 09:29:52 +0000 Thufir <hawat.thufir@gmail.com>
wrote:

> I just want to add text on top of a PDF, resulting in a new file.  I'm
> not concerned with encryption, authorization, nor really "editing" the
> PDF itself -- just ending up with a new PDF with my text on top.
> 
> I read something about a java app to do this in a magazine a few
> months, but didn't keep the article :(

iText would be a programming library (Java/.NET) that could be used to
do that. See http://lowagie.com/iText -- start with the Tutorials in
order to see how you can modify existing PDFs.

There's also pdftk, which can "stamp" PDFs onto each others. It uses
iText internally and provides a CLI.

Also, there's the Multivalent Tools. Quite nice stuff, too.

If you were more specific about what kind of texts you want to add,
there might be other suggestions.

-hwh
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [gentoo-user] insert text onto a PDF
  2007-07-25  9:29 [gentoo-user] insert text onto a PDF Thufir
  2007-07-25 11:29 ` Hans-Werner Hilse
@ 2007-07-25 11:59 ` Philip Webb
  2007-07-25 20:18   ` Thufir
  2007-07-29 21:18 ` [gentoo-user] " Roger Luethi
  2007-07-30  9:49 ` [gentoo-user] insert text onto a PDF Pavel Sanda
  3 siblings, 1 reply; 16+ messages in thread
From: Philip Webb @ 2007-07-25 11:59 UTC (permalink / raw
  To: gentoo-user

070725 Thufir wrote:
> I just want to add text on top of a PDF, resulting in a new file.
> what do other people do?

Pdftk is generally good: you could make a PDF of the text you want to add
(eg using Open Office), then use Pdftk to add it to your existing PDF.

-- 
========================,,============================================
SUPPORT     ___________//___,  Philip Webb : purslow@chass.utoronto.ca
ELECTRIC   /] [] [] [] [] []|  Centre for Urban & Community Studies
TRANSIT    `-O----------O---'  University of Toronto
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [gentoo-user] insert text onto a PDF
  2007-07-25 11:59 ` Philip Webb
@ 2007-07-25 20:18   ` Thufir
  2007-07-27 14:04     ` [gentoo-user] " Anno v. Heimburg
  0 siblings, 1 reply; 16+ messages in thread
From: Thufir @ 2007-07-25 20:18 UTC (permalink / raw
  To: gentoo-user

I emerged gimp, but am still emerging krita and kde.  From gimp, as
advertised, I was able to insert text and save the file as foo.xcf,
but need krita, apparently, to convert the xcf file to a pdf, at least
according to the tutorial.

This is workable, but kludgy.  I'd like one app to do it all.



thanks,

Thufir
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 16+ messages in thread

* [gentoo-user]  Re: insert text onto a PDF
  2007-07-25 20:18   ` Thufir
@ 2007-07-27 14:04     ` Anno v. Heimburg
  2007-07-29  7:33       ` Thufir
       [not found]       ` <bf6b6d5c0707271204heb8e25evf3328f1d923dfdf1@mail.gmail.com>
  0 siblings, 2 replies; 16+ messages in thread
From: Anno v. Heimburg @ 2007-07-27 14:04 UTC (permalink / raw
  To: gentoo-user

Thufir wrote:

> I emerged gimp, but am still emerging krita and kde.  From gimp, as
> advertised, I was able to insert text and save the file as foo.xcf,
> but need krita, apparently, to convert the xcf file to a pdf, at least
> according to the tutorial.

I don't understand. Why don't you have gimp export it to postscript and then
use ps2pdf or somesuch? Or directly print it to cups-pdf, if installed? 

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 16+ messages in thread

* [gentoo-user]  Re: insert text onto a PDF
  2007-07-27 14:04     ` [gentoo-user] " Anno v. Heimburg
@ 2007-07-29  7:33       ` Thufir
  2007-07-29  7:52         ` Dan Johansson
       [not found]       ` <bf6b6d5c0707271204heb8e25evf3328f1d923dfdf1@mail.gmail.com>
  1 sibling, 1 reply; 16+ messages in thread
From: Thufir @ 2007-07-29  7:33 UTC (permalink / raw
  To: gentoo-user

On Fri, 27 Jul 2007 16:04:02 +0200, Anno v. Heimburg wrote:


> I don't understand. Why don't you have gimp export it to postscript and
> then use ps2pdf or somesuch? Or directly print it to cups-pdf, if
> installed?


I'm not seeing a ps2pdf package to emerge.  Does it go by another name?


thanks,

Thufir

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [gentoo-user]  Re: insert text onto a PDF
  2007-07-29  7:33       ` Thufir
@ 2007-07-29  7:52         ` Dan Johansson
  2007-07-29  8:10           ` Thufir
  0 siblings, 1 reply; 16+ messages in thread
From: Dan Johansson @ 2007-07-29  7:52 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 684 bytes --]

On Sunday 29 July 2007 09:33, Thufir wrote:
> On Fri, 27 Jul 2007 16:04:02 +0200, Anno v. Heimburg wrote:
> > I don't understand. Why don't you have gimp export it to postscript and
> > then use ps2pdf or somesuch? Or directly print it to cups-pdf, if
> > installed?
>
> I'm not seeing a ps2pdf package to emerge.  Does it go by another name?

# equery b $(which ps2pdf)
[ Searching for file(s) /usr/bin/ps2pdf in *... ]
app-text/ghostscript-esp-8.15.3 (/usr/bin/ps2pdf)

-- 
Dan Johansson, <http://www.dmj.nu>
***************************************************
This message is printed on 100% recycled electrons!
***************************************************

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [gentoo-user]  Re: insert text onto a PDF
  2007-07-29  7:52         ` Dan Johansson
@ 2007-07-29  8:10           ` Thufir
  0 siblings, 0 replies; 16+ messages in thread
From: Thufir @ 2007-07-29  8:10 UTC (permalink / raw
  To: gentoo-user

On Sun, 29 Jul 2007 09:52:28 +0200, Dan Johansson wrote:

> On Sunday 29 July 2007 09:33, Thufir wrote:
>> On Fri, 27 Jul 2007 16:04:02 +0200, Anno v. Heimburg wrote:
>> > I don't understand. Why don't you have gimp export it to postscript
>> > and then use ps2pdf or somesuch? Or directly print it to cups-pdf, if
>> > installed?
>>
>> I'm not seeing a ps2pdf package to emerge.  Does it go by another name?
> 
> # equery b $(which ps2pdf)
> [ Searching for file(s) /usr/bin/ps2pdf in *... ]
> app-text/ghostscript-esp-8.15.3 (/usr/bin/ps2pdf)

Guess I had it installed already :)


-Thufir

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [gentoo-user] insert text onto a PDF
  2007-07-25  9:29 [gentoo-user] insert text onto a PDF Thufir
  2007-07-25 11:29 ` Hans-Werner Hilse
  2007-07-25 11:59 ` Philip Webb
@ 2007-07-29 21:18 ` Roger Luethi
  2007-07-29 23:35   ` Thufir
  2007-07-30  9:49 ` [gentoo-user] insert text onto a PDF Pavel Sanda
  3 siblings, 1 reply; 16+ messages in thread
From: Roger Luethi @ 2007-07-29 21:18 UTC (permalink / raw
  To: gentoo-user

On Wed, 25 Jul 2007 09:29:52 +0000, Thufir wrote:
> The tools I found are Xfig and flpsed. Xfig is a general image editor,
> while flpsed is specifically for marking up PDF files. It's important
> to note that neither of these programs can actually edit PDF files.
> Rather, they can be used to add new text and graphics on top of the
> file. This is generally all you need for filling out typical business
> forms such as contracts. "

Jarnal is the best tool I've seen for this purpose so far. You can load a
PDF as a background, paint/write all over it and export the result as PDF
again.

No ebuild, though.

Roger
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [gentoo-user] insert text onto a PDF
  2007-07-29 21:18 ` [gentoo-user] " Roger Luethi
@ 2007-07-29 23:35   ` Thufir
  2007-07-30 11:01     ` Roger Luethi
  2007-07-30 17:24     ` stow (was: Re: [gentoo-user] insert text onto a PDF) Alex Schuster
  0 siblings, 2 replies; 16+ messages in thread
From: Thufir @ 2007-07-29 23:35 UTC (permalink / raw
  To: gentoo-user

On 7/29/07, Roger Luethi <collector@hellgate.ch> wrote:
[...]
> Jarnal is the best tool I've seen for this purpose so far. You can load a
> PDF as a background, paint/write all over it and export the result as PDF
> again.
>
> No ebuild, though.
>
> Roger
[...]

you compiled on your own?  ok.  what happens if you want to uninstall
it, though?


-Thufir
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [gentoo-user] insert text onto a PDF
  2007-07-25  9:29 [gentoo-user] insert text onto a PDF Thufir
                   ` (2 preceding siblings ...)
  2007-07-29 21:18 ` [gentoo-user] " Roger Luethi
@ 2007-07-30  9:49 ` Pavel Sanda
  2007-07-30 10:16   ` Boyd Stephen Smith Jr.
  3 siblings, 1 reply; 16+ messages in thread
From: Pavel Sanda @ 2007-07-30  9:49 UTC (permalink / raw
  To: gentoo-user

> <http://overlays.gentoo.org/proj/sunrise> but it seems a bit complex,
> masked packages and so forth (?).

either get sunrise :

emerge -va layman
echo "source /usr/portage/local/layman/make.conf" >> /etc/make.conf
layman -f -a sunrise

> 
> Then, there's this ebuild just loitering around in cyberspace:
> 
> <http://atrey.karlin.mff.cuni.cz/~sanda/pdfedit/>  but it doesn't
> appear on the gentoo website that I saw.

or get current ebuild from:
http://overlays.gentoo.org/proj/sunrise/browser/reviewed/app-text/pdfedit


after that only 
ACCEPT_KEYWORDS=~x86 emerge pdfedit

pavel
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [gentoo-user] insert text onto a PDF
  2007-07-30  9:49 ` [gentoo-user] insert text onto a PDF Pavel Sanda
@ 2007-07-30 10:16   ` Boyd Stephen Smith Jr.
  0 siblings, 0 replies; 16+ messages in thread
From: Boyd Stephen Smith Jr. @ 2007-07-30 10:16 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 566 bytes --]

On Monday 30 July 2007 04:49:47 am Pavel Sanda wrote:
> ACCEPT_KEYWORDS=~x86 emerge pdfedit

OP, Please don't do this or your next emerge world will be (more) painful.  
You may also end up getting more unstable packages than you absolutely need.

Pavel, please don't suggest this is a sane way to run emerge in the future.

-- 
Boyd Stephen Smith Jr.                     ,= ,-_-. =. 
bss03@volumehost.net                      ((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy           `-'(. .)`-' 
http://iguanasuicide.org/                      \_/     

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [gentoo-user] insert text onto a PDF
  2007-07-29 23:35   ` Thufir
@ 2007-07-30 11:01     ` Roger Luethi
  2007-07-30 17:24     ` stow (was: Re: [gentoo-user] insert text onto a PDF) Alex Schuster
  1 sibling, 0 replies; 16+ messages in thread
From: Roger Luethi @ 2007-07-30 11:01 UTC (permalink / raw
  To: gentoo-user

On Sun, 29 Jul 2007 16:35:38 -0700, Thufir wrote:
> you compiled on your own?  ok.  what happens if you want to uninstall
> it, though?

No need to install it. You can do something like this:

java -jar /path/to/src/jarnal-current/jarnal.jar -t /path/to/src/jarnal-current/annotate.jaj -b foo.pdf

Make an alias for that, and you're all set.

Roger
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 16+ messages in thread

* [gentoo-user]  Re: Re: insert text onto a PDF
       [not found]       ` <bf6b6d5c0707271204heb8e25evf3328f1d923dfdf1@mail.gmail.com>
@ 2007-07-30 12:55         ` Anno v. Heimburg
  0 siblings, 0 replies; 16+ messages in thread
From: Anno v. Heimburg @ 2007-07-30 12:55 UTC (permalink / raw
  To: gentoo-user

Thufir wrote:

> Gimp seems to be primary tool for this, though

Well, not necessarily. Any graphics program that can load pdf would work for
what you want to do. Gimp is one of them, but Krita can import pdf, too. 

Also, if you have the poppler and netpbm packages installed, you can use
pdftoppm and the corresponsing ppmtowhatever to convert the input into a
whole plethora of graphic formats, use whatever graphics program you like
for editing, and then convert in a similar way. So given the right external
converters, your graphics program doesn't need to know about pdf.

The workflow is 1) pdf to editable picture format 2) edit picture 3) picture
back to pdf. gimp and krita can do steps one and two in one go, but with
the host of tools at your disposal, you can accomplish this in any number
of ways.

Anno.

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 16+ messages in thread

* stow (was: Re: [gentoo-user] insert text onto a PDF)
  2007-07-29 23:35   ` Thufir
  2007-07-30 11:01     ` Roger Luethi
@ 2007-07-30 17:24     ` Alex Schuster
  2007-07-31  7:16       ` [gentoo-user] Re: stow (was: " Thufir
  1 sibling, 1 reply; 16+ messages in thread
From: Alex Schuster @ 2007-07-30 17:24 UTC (permalink / raw
  To: gentoo-user

Thufir writes:

> On 7/29/07, Roger Luethi <collector@hellgate.ch> wrote:

> > No ebuild, though.

> you compiled on your own?  ok.  what happens if you want to uninstall
> it, though?

There usually is a "make uninstall", too.

But I suggest to use stow, or better, xstow, to install software. It goes 
like this:

cd myproject-1.2.3
./configure --prefix=/usr/local/stow/myproject-1.2.3
make
su
emerge xstow
make install
cd /usr/local/stow
stow myproject-1.2.3

Now you have symlinks in /usr/local, as if you installed into /usr/local 
directly. To uninstall, issue a 'xstow -D myproject-1.2.3' and 
remove /usr/local/stow/myproject-1.2.3. All clean and tidy again.

	Alex
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 16+ messages in thread

* [gentoo-user]  Re: stow (was: Re: insert text onto a PDF)
  2007-07-30 17:24     ` stow (was: Re: [gentoo-user] insert text onto a PDF) Alex Schuster
@ 2007-07-31  7:16       ` Thufir
  0 siblings, 0 replies; 16+ messages in thread
From: Thufir @ 2007-07-31  7:16 UTC (permalink / raw
  To: gentoo-user

On Mon, 30 Jul 2007 19:24:29 +0200, Alex Schuster wrote:


>> you compiled on your own?  ok.  what happens if you want to uninstall
>> it, though?
> 
> There usually is a "make uninstall", too.
> 
> But I suggest to use stow, or better, xstow, to install software.

I hadn't ever heard of such a thing!  Wow, thanks!


-Thufir

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2007-07-31  7:21 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-25  9:29 [gentoo-user] insert text onto a PDF Thufir
2007-07-25 11:29 ` Hans-Werner Hilse
2007-07-25 11:59 ` Philip Webb
2007-07-25 20:18   ` Thufir
2007-07-27 14:04     ` [gentoo-user] " Anno v. Heimburg
2007-07-29  7:33       ` Thufir
2007-07-29  7:52         ` Dan Johansson
2007-07-29  8:10           ` Thufir
     [not found]       ` <bf6b6d5c0707271204heb8e25evf3328f1d923dfdf1@mail.gmail.com>
2007-07-30 12:55         ` [gentoo-user] " Anno v. Heimburg
2007-07-29 21:18 ` [gentoo-user] " Roger Luethi
2007-07-29 23:35   ` Thufir
2007-07-30 11:01     ` Roger Luethi
2007-07-30 17:24     ` stow (was: Re: [gentoo-user] insert text onto a PDF) Alex Schuster
2007-07-31  7:16       ` [gentoo-user] Re: stow (was: " Thufir
2007-07-30  9:49 ` [gentoo-user] insert text onto a PDF Pavel Sanda
2007-07-30 10:16   ` Boyd Stephen Smith Jr.

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox