cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

PDF Invalid Structure

Hello everyone, 

 

With help of Abm user on this link, I cretaed a Flow that takes all PDF in a librairy and then instructs the PDF viewer in power Apps to show them : https://powerusers.microsoft.com/t5/Using-Flows/Route-did-not-match-clientRequestId/m-p/459113#M1151...

 

Unfortunately, I have this error when I selected a PDF in a gallery in order to view it : 

Capture30.JPG

 

When I clic on "More information" it says : 

 

PDF.js v1.9.426 (build: 2558a58d)
Message: Invalid PDF structure

 

Have you ever seen this before ? Do you know I to solve this problem please ? 

 

Thanks for your reply !

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Champion
Community Champion

Re: PDF Invalid Structure

Hello @UltimaRRSS ,

Without seeing your code, it is a bit hard to analyse your problem, however what I gave you in my post is a process that works and I use on a large number of PDF document libraries,

I have not watched the particular video you mention, however I have seen a lot of Paul's other work, which is of a very high and informative standard.

Please watch this video and see if you can duplicate the process - I am happy to help you sort out any "bumps"

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

4 REPLIES 4
Highlighted
Community Champion
Community Champion

Re: PDF Invalid Structure

Hello @UltimaRRSS ,

I have a process similar  - viewing library photos in the PDF viewer from a SharePoint Document and have the contents listed in a gallery (to explain the ThisItem bit).

The Document in the PDF library is ViewPDF.pdf (variable set below)

The code launching the Flow is

 

Set(
    stPDFName,
    ThisItem.Name
);
Set(
   ViewPDF,
   PDFView.Run(
      stSite,
      Concatenate(
         "/",
         ThisItem.'Folder path',
         First(
            Split(
               stPDFName,
               "."
            )
         ).Result,
         ".pdf"
      )
   )
)

 

The Flow is below - all of this works. 

PDFFlow.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Can you please tell me the differences in what you are doing?

Highlighted
Helper I
Helper I

Re: PDF Invalid Structure

Hello WarrenBelz

 

I'm a beginners in PowerApps and PowerFlow so I didn't catch a lot of what you asked me. 

 

I want to do the same thing as this guys in this youtube video : https://www.youtube.com/watch?v=s3PC7tqqoI4

 

Maybe this will answer your question as I'm totally lost unfortunately ...

 

Thanks for your time helping me, 

 

See you soon 

Highlighted
Community Champion
Community Champion

Re: PDF Invalid Structure

Hello @UltimaRRSS ,

Without seeing your code, it is a bit hard to analyse your problem, however what I gave you in my post is a process that works and I use on a large number of PDF document libraries,

I have not watched the particular video you mention, however I have seen a lot of Paul's other work, which is of a very high and informative standard.

Please watch this video and see if you can duplicate the process - I am happy to help you sort out any "bumps"

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

Highlighted
Helper I
Helper I

Re: PDF Invalid Structure

Thanks for your reply,

 

It works now, i forget tu put "$content" in SendPDF PowerApps action !

 

Thank you  

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (10,457)