Upload PDF files to AEMM with options

Avatar

Avatar
Validate 1
Level 1
jupitert7544964
Level 1

Likes

0 likes

Total Posts

3 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
jupitert7544964
Level 1

Likes

0 likes

Total Posts

3 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile
jupitert7544964
Level 1

23-06-2016

When I upload a PDF to AEMM, how can I set the options that are available from the Acrobat plugin and the website? I want to set "Enable horizontal swiping within PDF" and "Fit one full page to screen" for the PDF. I can upload a PDF file to AEMM using the API the same way that article files are uploaded if I set the content-type to 'application/pdf' instead of 'application/zip'. The sample code is still from May so there is no documentation on how to use the PDF upload.

Michael

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Boost 50
Employee
Bob_Bringhurst_
Employee

Likes

88 likes

Total Posts

411 posts

Correct reply

113 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 25
Boost 10
View profile

Avatar
Boost 50
Employee
Bob_Bringhurst_
Employee

Likes

88 likes

Total Posts

411 posts

Correct reply

113 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 25
Boost 10
View profile
Bob_Bringhurst_
Employee

23-06-2016

As I mentioned, the sample code will be updated soon. Here's the info I received:

·         To set the “Fit one full page to screen” option

o    This is done on the article metadata, the field is fitToScreen

{

                “entityName”: “helloworld”,

                “entityTitle”: “Hello World”,

                “entityType”: “article”,

                “fitToScreen”: true,

                …

}

·         To set the “Enable horizontal swiping within PDF”

o    This is done when uploading PDF to the ingestion service, set the URL parameter hoirzontalSwipe

https://ings.publish.adobe.io/publication/{{publication-id}}/article/{{entityName}};version={{versio...

o    By default, the horitzontalSwipe is set to false (i.e. if the URL parameter is not set)

o    If the horitzontalSwipe is set to true but fitToScreen is set to false, then the ingestion service will throw an error

Answers (3)

Answers (3)

Avatar

Avatar
Validate 1
Level 1
jupitert7544964
Level 1

Likes

0 likes

Total Posts

3 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
jupitert7544964
Level 1

Likes

0 likes

Total Posts

3 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile
jupitert7544964
Level 1

23-06-2016

Thanks, your information is enough to get my code fully working.

Avatar

Avatar
Validate 1
Level 1
jupitert7544964
Level 1

Likes

0 likes

Total Posts

3 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
jupitert7544964
Level 1

Likes

0 likes

Total Posts

3 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile
jupitert7544964
Level 1

23-06-2016

Thanks, uploading PDFs is enough for testing, but I'll need to set "Enable horizontal swiping within PDF" for actual use. I'll update with the sample code as soon as it becomes available.

Avatar

Avatar
Boost 50
Employee
Bob_Bringhurst_
Employee

Likes

88 likes

Total Posts

411 posts

Correct reply

113 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 25
Boost 10
View profile

Avatar
Boost 50
Employee
Bob_Bringhurst_
Employee

Likes

88 likes

Total Posts

411 posts

Correct reply

113 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 25
Boost 10
View profile
Bob_Bringhurst_
Employee

23-06-2016

Hi Michael - We'll update the sample code soon with PDF examples. I'll let you know when it's available.  Thanks.