Skip to content
Advertisement

Tag: pdf

Extract pages from PDF with javascript in Acrobat Pro

I am trying to create a script that will extract all pages from a pdf document and name them from the number of the pdf (say the pdfs name is 5047.pdf) and then increment the name for every page of the pdf so it produces 5048.pdf, 5049.pdf etc. However my script doesnt do anything. Answer Original link: https://forums.adobe.com/thread/969135 The solution,

PDF.js CORS issue

I’m having an issue with PDF.js and CORS configuration. From domain A I’m loading PDF.js into an iframe with a file as parameter (full path to the server, which will return a pdf document). PDF.js will create a request to the server at domain B with origin: domain A. The server at domain B returns the pdf document with header

Generate PDF from HTML using pdfMake in Angularjs

I am trying to create a PDF from my HTML using pdfMake and Angular (I’ve also tried jsPDF and couldn’t get it to work either). I tried using the following code in my Angular controller: but I receive the following error: Unrecognized document structure: {“_margin”:null}”. My HTML consists of two simple tables in a div exportable. If anyone knows a

Prevent PDF auto download by idm using pdf.js

I’m using PDF.Js to embed PDF file for preview, and I removed the script of download and open files from the viewer.js , but when I test the page and PDF file try to show, the Internet Download Manager download it and abort the preview .. after search I found that using object instead of iframe may solve the problem,

Render PDF using PDF.JS and AngularJS from byte array

I’ve been following the following links to try to render a byte stream returned from an API to a PDF in browser using PDF.JS: http://codingcrazy87.blogspot.com/2014/05/view-pdf-files-directly-within-browser.html https://gist.github.com/fcingolani/3300351 Here is the JavaScript used to run render. Note: stream is a byte array returned from an API. Here is $scope.renderPDF: Here is the HTML in my template page: When the code runs I

Fill pdf form with javascript (client-side only)

I need to fill a pdf form automatically in my angularjs webapp. The pdf form is generated outside the app so I can configure it as I want. In my app, I just need to load the pdf, modify the form fields and flatten the file so it doesn’t look like a form anymore. Do you know any way to

How to write javascript to reorder pages of a pdf document?

I have a double-sided document as two separate pdf files — front-facing pages in one document and rear-facing pages in the second. I have also combined them into a single document with all the pages but with all the front-facing pages before the rear-facing pages. The page ordering is of the form, {1,3,5,7,…,[n],2,4,6,8,…,[n-1 OR n+1]} I wish to write a

Generating PDF files with JavaScript

I’m trying to convert XML data into PDF files from a web page and I was hoping I could do this entirely within JavaScript. I need to be able to draw text, images and simple shapes. I would love to be able to do this entirely in the browser. Answer I’ve just written a library called jsPDF which generates PDFs

How to program a text search and replace in PDF files

How would I be able to programmatically search and replace some text in a large number of PDF files? I would like to remove a URL that has been added to a set of files. I have been able to remove the link using javascript under Batch Processing in Adobe Pro, but the link text remains. I have seen recommendations

Advertisement