pdftk

How can I inject a dynamically generated image (barcode, as it happens) into a PDF document (I'm in rails if that matters)?

|▌冷眼眸甩不掉的悲伤 提交于 2021-02-08 04:57:05
问题 I'm aware of pdf-stamper, but I'm trying to avoid switching everything to jruby right now. I just need to "stamp" an image that I generate within the rails app (a PDF417 barcode) into a form field in the PDF document (there's an FDF; it's a document template kinda thing). I'm filling out the text-based fields by just shelling out to pdftk, so if there's a way to do it using pdftk, I'd be fine with that, but I've looked high and low for one without any luck. 回答1: How about using a barcode font

how i can merge multi pdfs files by using VBA code

泪湿孤枕 提交于 2021-01-29 02:41:51
问题 I have a table that contains a paths of multi pdfs file...now I need a VBA code to merge all these files to a single pdf file. Notice:-the number of pdfs files to be merged varies from time to time. Sub Combine_PDFs_Demo() Dim i As Integer 'counter for records Dim x As Integer Dim strNPDF As String Dim bSuccess As Boolean Dim DB As Database Dim RS As Recordset Set DB = CurrentDb Set RS = DB.OpenRecordset("SELECT[paths] from scantemp ") strNPDF = CurrentProject.Path & "\request_pic\" &

How to add footer to pdf with pdfjam or pdftk?

萝らか妹 提交于 2021-01-28 19:56:21
问题 I am using a shell script to modify many pdfs and would like to create a script that adds the page number (1 of X format) to the bottom of PDFs in a directory along with the text of the filename. I tried using pdfjam with this format: pdfjam --pagenumbering true but it fails saying undefine pagenumbering Any other recommendations how to do this? I am OK installing other tools but would like this to all be within a shell script. Thank you 回答1: tl;dr: pdfjam --pagecommand '' input.pdf By

How to solve “pdftk: Bad CPU type in executable” on Mac?

|▌冷眼眸甩不掉的悲伤 提交于 2021-01-26 03:10:24
问题 I want to use pdftk but I always get this error zsh: bad CPU type in executable: pdftk I reinstalled pdftk and I changed the terminal from bsh to zsh as I found in my search for how to solve this error but without any success. I'm using the latest MacOS version "Catalina v10.15.4" 回答1: This version of pdftk works on macOS Catalina (10.15). https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/pdftk_server-2.02-mac_osx-10.11-setup.pkg The link on the website is not up to date. That means by

How to solve “pdftk: Bad CPU type in executable” on Mac?

|▌冷眼眸甩不掉的悲伤 提交于 2021-01-26 03:05:02
问题 I want to use pdftk but I always get this error zsh: bad CPU type in executable: pdftk I reinstalled pdftk and I changed the terminal from bsh to zsh as I found in my search for how to solve this error but without any success. I'm using the latest MacOS version "Catalina v10.15.4" 回答1: This version of pdftk works on macOS Catalina (10.15). https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/pdftk_server-2.02-mac_osx-10.11-setup.pkg The link on the website is not up to date. That means by

How to solve “pdftk: Bad CPU type in executable” on Mac?

筅森魡賤 提交于 2021-01-26 03:04:25
问题 I want to use pdftk but I always get this error zsh: bad CPU type in executable: pdftk I reinstalled pdftk and I changed the terminal from bsh to zsh as I found in my search for how to solve this error but without any success. I'm using the latest MacOS version "Catalina v10.15.4" 回答1: This version of pdftk works on macOS Catalina (10.15). https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/pdftk_server-2.02-mac_osx-10.11-setup.pkg The link on the website is not up to date. That means by

How do I determine programmatically if a PDF is searchable?

烂漫一生 提交于 2020-12-01 07:34:29
问题 I have a CSV with a list of URLs with PDFs: Some of these PDFs are searchable. Some of these PDFS aren't searchable. I want to determine which PDFs are searchable from my list of PDFs. Is there an easy way to do this? 回答1: On the commandline, I'd use pdffonts to determine which fonts the file uses. This runs rather fast as well... Example 1: PDF containing text pdffonts bash-manpage.pdf name type encoding emb sub uni object ID ------------------------------- ------------- --------------- ---

How do I determine programmatically if a PDF is searchable?

自闭症网瘾萝莉.ら 提交于 2020-12-01 07:30:46
问题 I have a CSV with a list of URLs with PDFs: Some of these PDFs are searchable. Some of these PDFS aren't searchable. I want to determine which PDFs are searchable from my list of PDFs. Is there an easy way to do this? 回答1: On the commandline, I'd use pdffonts to determine which fonts the file uses. This runs rather fast as well... Example 1: PDF containing text pdffonts bash-manpage.pdf name type encoding emb sub uni object ID ------------------------------- ------------- --------------- ---

How do I determine programmatically if a PDF is searchable?

爷,独闯天下 提交于 2020-12-01 07:29:02
问题 I have a CSV with a list of URLs with PDFs: Some of these PDFs are searchable. Some of these PDFS aren't searchable. I want to determine which PDFs are searchable from my list of PDFs. Is there an easy way to do this? 回答1: On the commandline, I'd use pdffonts to determine which fonts the file uses. This runs rather fast as well... Example 1: PDF containing text pdffonts bash-manpage.pdf name type encoding emb sub uni object ID ------------------------------- ------------- --------------- ---