Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>First I fixed the PDF.</p> <p>It seems, that cpdf -upright will also fix this. If you cannot use cpdf, because of commercial use, you can use a manual approach as shown with Adobe Illustrator.</p> <p>cpdf did not correct the Acrofields orientation and not the annotations in the pdf. I had to recreate the annotations. The Acrofields can be fixed using JavaScript as shown below.</p> <ol> <li>open the PDF in Adobe Illustrator</li> <li>Repeat for each page 1..n of your document, the current page is "x" in the following steps:</li> <li>Create a new document in A4, landscape mode, make sure the size is exactly 297x210 (WxH)! <ol> <li>Open the PDF page x in Illustrator</li> <li>Copy all Elements of page x onto the new document using copy / paste functions</li> <li>Use Object/Transform/Rotate to rotate to the right angle, usually you need -90° or +90°</li> <li>Place the rotated objects on the page to match your expectations</li> <li>Save the document as "page-x.pdf"</li> <li>Close the PDF page x</li> <li>Repeat with next page until done...</li> </ol></li> <li>Open Acrobat X to merge the single page-....pdf into one large PDF. Check the online documentation if you are unsure about this. Don't mess the order of pages!</li> <li>Open the broken PDF </li> <li>Save with a new name</li> <li>Open the pages tool, choose "replace pages" function.</li> <li>Select the merged PDF as page source and replace all pages in the broken PDF with the fixed pages from the merged PDF.</li> <li>You should see the fields, standing in a 90° angle from the position where they are supposed to be</li> </ol> <p>Then I fixed the Acrofields using the PDF JavaScript in Acrobat Pro.</p> <ol> <li>Open the Javascript console.</li> <li><p>Enter the following script:</p> <pre><code>var box = getPageBox(); var w = box[2] - box[0]; var h = box[1] - box[3]; // left,top right,bottom // bottom, h-left top, h-right for(i=0; i&lt;numFields; i++) { var f = getField(getNthFieldName(i)); var orig = f.rect; f.rect = [orig[3], h-orig[0], orig[1], h-orig[2]]; f.rotation = 0; } </code></pre> <p>To execute, highlight the script and press the ENTER Key, NOT RETURN. The ENTER Key is the enter-key on the keypad. This will execute the highlighted JavaScript. The formfields will be rotated by +90° and should be placed almost correct, but at least near the position, where they are supposed to be.</p></li> <li>Go through all pages, select all fields on the page, and move all fields together to the right position.</li> </ol>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload