Lecciones Prácticas
  • About
  • Contact

Search Results: Pdftk

You are browsing the search results for pdftk

pdftk: tildes y caracteres especiales en metadatos de pdf

05/01/2010 10:51 \ Leave a Comment \ by Miguel

— my apologies to the english readers, this is related to spanish special characters so the post will only be written in spanish—

Ahora que ya sabemos instalar, extraer y modificar metadatos de los pdf usando pdftk podemos pasar al siguiente nivel: ¿cómo codificar las tildes en, por ejemplo, los autores?

Si usas un fichero como el siguiente para modificar los metadatos, se producirán fallos al almacenar las tildes (línea 3):

1
2
3
4
5
6
7
8
9
10
11
12
13
InfoKey: Title
InfoValue: On the Asymptotic Determination of Invariant Manifolds for Autonomous Ordinary Differential Equations
InfoKey: Author
InfoValue: Palacián, J.
InfoKey: Producer
InfoValue: Revista de la Real Academia de Ciencias de Zaragoza
InfoKey: ModDate
InfoValue: D:20021212160539+01'00'
InfoKey: CreationDate
InfoValue: D:20021212160539+01'00'
PdfID0: 74f6cec73badf5b81956f05090f5af37
PdfID1: 74f6cec73badf5b81956f05090f5af37
NumberOfPages: 60

InfoKey: Title InfoValue: On the Asymptotic Determination of Invariant Manifolds for Autonomous Ordinary Differential Equations InfoKey: Author InfoValue: Palacián, J. InfoKey: Producer InfoValue: Revista de la Real Academia de Ciencias de Zaragoza InfoKey: ModDate InfoValue: D:20021212160539+01'00' InfoKey: CreationDate InfoValue: D:20021212160539+01'00' PdfID0: 74f6cec73badf5b81956f05090f5af37 PdfID1: 74f6cec73badf5b81956f05090f5af37 NumberOfPages: 60

Para saber cómo tenemos que codificar los caracteres ‘extraños’ (con tilde, eñe, etc) se puede consultar la lista de códigos html

Siguiendo estas normas, nuestro fichero de entrada de metadatos será ahora:

1
2
3
4
5
6
7
8
9
10
11
12
13
InfoKey: Title
InfoValue: On the Asymptotic Determination of Invariant Manifolds for Autonomous Ordinary Differential Equations
InfoKey: Author
InfoValue: Palacián, J.
InfoKey: Producer
InfoValue: Revista de la Real Academia de Ciencias de Zaragoza
InfoKey: ModDate
InfoValue: D:20021212160539+01'00'
InfoKey: CreationDate
InfoValue: D:20021212160539+01'00'
PdfID0: 74f6cec73badf5b81956f05090f5af37
PdfID1: 74f6cec73badf5b81956f05090f5af37
NumberOfPages: 60

InfoKey: Title InfoValue: On the Asymptotic Determination of Invariant Manifolds for Autonomous Ordinary Differential Equations InfoKey: Author InfoValue: Palacián, J. InfoKey: Producer InfoValue: Revista de la Real Academia de Ciencias de Zaragoza InfoKey: ModDate InfoValue: D:20021212160539+01'00' InfoKey: CreationDate InfoValue: D:20021212160539+01'00' PdfID0: 74f6cec73badf5b81956f05090f5af37 PdfID1: 74f6cec73badf5b81956f05090f5af37 NumberOfPages: 60

Posted in: Uncategorized, Utilidades ofimática \ Tagged: caracteres extraños, metadata, metadatos, pdf, pdftk, tildes

Install pdftk from sources in Linux RedHat

05/01/2010 10:12 \ 1 Comment \ by Miguel

Yesterday I talked about pdftk and how to modify pdf metadata using this software.

Well, today I’ll show you how to install this great tool in your Redhat systems. In my case, I am using:

$ uname -r
2.6.18-164.9.1.el5

$ uname -r 2.6.18-164.9.1.el5

This are the steps I followed:

  • Download the last version available:
    wget http://www.pdfhacks.com/pdftk/pdftk-1.41.tar.gz

    wget http://www.pdfhacks.com/pdftk/pdftk-1.41.tar.gz

  • Extract the tar contents:
    tar -xzvf pdftk-1.41.tar.gz

    tar -xzvf pdftk-1.41.tar.gz

  • Now change to that directory, check your corresponding Makefile’s variables (TOOLPATH, VERSUFF which in my case are empty) and then proceed to compile:
    cd pdftk-1.41/pdftk
    make -f Makefile.RedHat
    strip pdftk

    cd pdftk-1.41/pdftk make -f Makefile.RedHat strip pdftk

    Note the last strip command? It is done to reduce the resulting filesize 😉

  • Last step, complete the installation (as root):
    make -f Makefile.RedHat install

    make -f Makefile.RedHat install

Now you can use pdftk 😉

Posted in: Utilidades ofimática \ Tagged: fuentes, instalar, install, metadata, metadatos, pdf, pdftk, sources, src

Extract / modify PDF metadata (using pdftk)

04/01/2010 09:55 \ 4 Comments \ by Miguel

PDFTK is a free, open source PDF toolkit. It is one of my preferred tools to deal with pdf metadata. It runs in Windows and Linux platforms.

For instance, you can read the pdf metadata:

$ pdftk original.pdf dump_data output data.txt
$ cat data.txt
InfoKey: Creator
InfoValue: Writer�
InfoKey: Producer
InfoValue: OpenOffice.org 3.1�
InfoKey: CreationDate
InfoValue: D:20090923135542+02'00'
PdfID0: e5d831c33f77ac694b32456732f2c86
PdfID1: e5d831c33f77ac694b32456732f2c86
NumberOfPages: 1

$ pdftk original.pdf dump_data output data.txt $ cat data.txt InfoKey: Creator InfoValue: Writer� InfoKey: Producer InfoValue: OpenOffice.org 3.1� InfoKey: CreationDate InfoValue: D:20090923135542+02'00' PdfID0: e5d831c33f77ac694b32456732f2c86 PdfID1: e5d831c33f77ac694b32456732f2c86 NumberOfPages: 1

And you can also modify the pdf metadata:

$ pdftk original.pdf update_info data.txt output resultado.pdf

$ pdftk original.pdf update_info data.txt output resultado.pdf

Note the data.txt must be in a correct format!

Posted in: Utilidades ofimática \ Tagged: infokey, infovalue, metadata, pdf, pdftk, toolkit, tools

Categories

  • CDS Invenio (76)
  • Informática – Sistemas y servidores (37)
    • OS X (11)
  • Informática – teoría (1)
  • Informática – web (150)
    • django (1)
    • Drupal (27)
    • Joomla (8)
    • magento (4)
    • OJS (Open Journal System) (2)
    • Symfony (9)
    • vBulletin (15)
    • wordpress (25)
    • Yii2 (1)
  • javascript (11)
  • PHP (7)
  • python (17)
  • Uncategorized (34)
  • Utilidades ofimática (4)
  • Vufind (3)

PUBLICIDAD

Videos de boda en Zaragoza
videos de boda en Zaragoza

 
 
Estudio creativo en Zaragoza
Estudio creativo en Zaragoza

 
 
Centro de estética en Huesca
Estetica Huesca

Paypal donate

Please help me keep this blog up by donating.

Por favor, ayúdame a continuar con el blog donando.

© Copyright 2021 - Lecciones Prácticas
Prana Theme ⋅ Powered by WordPress