Pandoc, make PDF for printing purposes, links into footnotes - pdf

I have a markdown document which I would like to convert to a PDF.
I will then be printing this PDF onto paper.
I would like to know how to convert my markdown in a PDF so that there are no digital elements the user has to click on. Since the document will be printed and it will be impossible for readers to click on anything.
I would like it so anything the user has to click on is converted into a footnote, or some other visual indicator.
The two main offenders I have found are web links and section links.
I am using the -V links-as-notes=true option to make all web links into footnotes.
However section links (ex: [section name](#section-name)) are still digital elements which must be clicked.
I have tried looking into the options provided by the packages pandoc uses which pandoc allows users to customize. However I have not found any relevant options.

Related

PDF cover page printed as the only on the sheet, without empty pages inserted

I have a make-based workflow which uses pdftk to merge cover with LaTeX document. The cover is generated by the following recipe (if that matters):
$(COVER) : $(patsubst %.pdf,%.svg,$(COVER))
inkscape $< --export-area-page --batch-process --export-type=pdf --export-filename=$# || inkscape --file=$< --export-area-page --export-area-drawing --without-gui --export-pdf=$#
When I view the document or print it single-sided, everything looks well. But when I print it in double-sided, the first page of the document is obviously printed at the opposite side of the cover. An obvious solution is to add a blank page - but that ruins document viewing and single-side printing.
How can I suggest (not necessarily force) printer to print the cover page single-sided by default? Preferably without losing hyperlinks in both cover and the document. Something to mark a page as "the only in the sheet" or "the first in the sheet" when printed.
I can use any tool available in Ubuntu, preferably commandline (so I can use it in the Makefile) or a Python package (so I can write an appropriate commandline tool myself).
An answer to Insert blank pages into PDF when printing does not help, as it does not cover hiding the blank pages when viewing/single side printing.

Fetch a certain page of a pdf as an image from google drive

I have some 10,000 pages of hand-written scanned documents in google drive in somewhere around 70 pdf documents.
I am making a spreadsheet index of these, with one row for each page where I make notes of what is on each page, by actually viewing those pages, reading it, and every fully typing it if required.
I need a link, which I can put in the spreadsheet, which when clicked opens up a certain page of the pdf as an image only, and not the entire pdf, the pdf is in google drive. Is there something like this possible in Google Drive? Or should I manually download all pdf, split it into images, and then re-upload and use that?
(example - java -jar pdfbox-app.jar PDFToImage -format jpg -quality 0.75 pdffile.pdf ; and then upload all this)
I have a feeling it must be possible because when we open the pdf in browser, it loads pdf pages one by one, it takes time but it opens it in some custom image+text format, so it must be exported. Also I know there is one image version for each google slide and link is stable, so there might be something for pdf also I was thinking.
There isn’t a parameter or feature to link a pdf page in Google Drive file viewer.
Indeed as mentioned, you can link to a specific slide in Google Slides, however Google file types do have additional features.
That’s not the case for PDFs for example. A workaround I can think of would be to create a comment for each page and each comment will have its own id.
After creating the comment, you can click on the three vertical dots icon and click on Link to this comment.
Alternatively, you can send feedback to Google (On file viewer page, click on three vertical dots icon and then Send feedback to Google) making sure to describe the proposed feature.

Is there a recommended workflow to automate producing PDF forms with embedded javascript?

We use a lot of PDF forms with embedded javascript. We generate PDFs from LibreOffice, then use Acrobat to add PDF controls and javascript. This isn't working well, because a change to the appearance of the form in LibreOffice then causes additional work in Acrobat to put the PDF controls back where they should be, and then re-do the javascript.
Is there a smart way to generate PDFs with the PDF controls built-in (text input boxes, check boxes, radio boxes, digital signature boxes), with all the javascript included in the source file?
For example, is there a tool that could convert an html form with embedded javascript into a PDF with the same javascript running in the PDF?
I have a two step process.
First, create the PDF using Adobe InDesign. InDesign can add PDF interactive PDF fields to your document so that when exported, the fields are present.
The second step is to use a script to add scripted actions to each field like this...
this.getField("foo").setAction("MouseUp", "app.beep(0);");
See the documentation for more actions.

PDF Tags don't show up in tags panel or reading order

I am tagging a small PDF (4pg), and midway through the second page the tags stopped appearing in the tags and the reading order panel after I chose the tag I wanted via TouchUp Reading Order. If I open the content panel, correct containers are created, so i see:
- Container <H3>Some text
- Container <H3>Some text
- Container <H3>Some text
- Text: Some Text
Does anybody know how to get the three panels synced again?
The PDF mentioned above has some major internal errors, specifically "General Format Errors."
To find these, I ran a PDF Syntax Issue report - which provides details about the PDF in question. This PDF had ~4 pages of errors.
The conclusion was to regenerate the PDF from the source file. (I don't have this yet so I will edit this after I get it.)
To run the Report
Acrobat 9.5- Advanced menu > Print Production > Prefllight. By default, all reports/profiles will be shown. The Syntax Report is under the PDF analysis section, or use the find. Highlight the report then click analyze.
Acrobat X- The Print Production is now a panel, and there is a Preflight section.

how can I generate a summary of the highlights in a pdf file?

We all know that we can highlight certain texts in a pdf file either using Adobe Acrobat or Preview on Mac. I'm wondering how I can extract all these highlights in a pdf file, and generate a summary (a note kind of thing).
The following post
PDF: standard format for highlights?
points out that there are multiple ways to do highlighting. Will it be a challenge to distinguish the original content of the file and the user-added highlights if shapes with transparency is used to achieve highlights?
Details about this can be found in open source pdf parsing-rendering libraries, and you just have to read the code or document if available.