Skip to main content
Participant
April 25, 2024
Question

Examples of Responsive PDF for mobile

  • April 25, 2024
  • 1 reply
  • 1054 views

I'm in love with Liquid Mode in Adobe Acrobat Reader. I need to do something similar but for a specific use case and with extended capabilities. I'm attempting to do this in python for proof of concept. I have successfully processed a PDF with the incredibly helpful guide provided here. However, now I want to take that JSON output and create a new PDF that displays properly on my phone. I can't seem to find anyway to do this, and I find all the docs incredibly confusing - Document Generation API seems to want a word doc template? I don't want to use a Word Doc to do it, I just want to take the structured data that I have and display it on a smaller page.  I thought I might be able to use Linearization, but it seems there's no linearization module included anymore with the SDK, and there's no example for python on that page. Am I correct that there's no API to access Adobe Acrobat Express Liquid Mode? (I've emailed support about this, but haven't heard a peep back.) 

It seems like it would be a really common use case. I thought this would be pretty straightforward like building a responsive webpage, and now it's seeming really complex.  Does anyone have or know of a python example that does this? Any guides or reference material would be appreciated! 

This topic has been closed for replies.

1 reply

Raymond Camden
Community Manager
Community Manager
April 25, 2024

Extract's output was not meant, in general, to be used to create a new PDF, but rather to instrospect the contents of the PDF via code. You can create PDFs from Office docs, and with Word templates and Doc Gen, but not from 'raw' input like the results of Extract. 

 

In theory, if you used the results of Extract to generate an HTML version that's good on mobile, you could then use our Create from HTML API to generate the PDF. 

lilphotonAuthor
Participant
April 25, 2024

Raymond, thanks so much for the reply! However, that's a really roundabout way of doing things. The output I really want is a PDF that fits my mobile screen. I only used Extract because I thought I had to to create my responsive PDF. What's the best way to create that? Does Linearize do that, and if so, is there a module I can use (it's missing from my SDK)? Thanks in advance!

Raymond Camden
Community Manager
Community Manager
April 25, 2024

Nope, we don't have any API that would do this.