Image and Text PDF Sharing Tutorial

Image and Text PDF Sharing Tutorial

Image and Text PDF Sharing Tutorial

Onto yesterday’s Image and Text PDF Primer Tutorial “Image and Text PDF” creator start, today we wanted to link in with our previous Web Share API Primer Tutorial work to offer some of our users the chance to share their work. Yes, it’s some of our users here because the Web Share API interfacing does not work on all platforms and only works for https: protocol URLs.

Also in the winds today is the “uniquifying” of media filenames for their limited lifespan.

And in a wind (called Mariah) we convert our PDF to a JPEG image via the great ImageMagick


convert -density 300 pdffilename.pdf pdffilename.jpg

… command line type of command (accessed via PHP exec conduit) along the way, because that might come in handy down the line.

And then, “down the line”, we realized that for Safari platform work where a PDF is shown within an HTML iframe scenario, that JPEG image can immediately help, it being that (onclick event) intermediary between the iframe and opening PDF in a new window (but not good in the iframe element).

See this in action with the changed pdfimageplustext.php Image and Text PDF (still a blank webpage without the user interaction, at this first draft) PHP web application (helped out by the changed HTML and Javascript web_share_api_test.html Web Share API supervisor) you can also try below.


Previous relevant Image and Text PDF Primer Tutorial is shown below.

Image and Text PDF Primer Tutorial

Image and Text PDF Primer Tutorial

We are restarting our interest in our “Timesheet Filling In Automator” web application long standing dream from another angle today. We want to …

  • create PDF data via the FPDF PHP library … where we …
  • base the PDF on a single image (at this stage) … and …
  • allow for any number of x,y,text combinations placed on top of the image above … and …
  • allow for Font Family and Font Style and Font Size (with a mantissa on x means to change the Font Size for individual text nodes)

… for this early days “proof of concept” and “just the workings, not the user interaction” with our “first draft” pdfimageplustext.php Image and Text PDF (blank webpage without the user interaction, at this first draft) PHP web application you can see in the example usage below …

Open Link of Content Below in New Window … or change that URL just below …
https://www.rjmprogramming.com.au/pdfimageplustext.php?pdfimageplustext=y&pdfimage=moodle.jpg&pdftext1=Moodle%20Page&pdfx1=230&pdfy1=250

If this was interesting you may be interested in this too.


If this was interesting you may be interested in this too.

This entry was posted in eLearning, Event-Driven Programming, Operating System, Tutorials and tagged , , , , , , , , , , , , , , , , , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *