129
Views
21
Comments
Solved
Where can i find a PDF preview for large PDF's  (more than 2 or 3 mb)?
Application Type
Reactive

I need to find a way to preview large PDF's that have more than 3 megabytes.

2022-03-21 06-55-47
Swapnil Sinha
Solution

You can have a look at the attachment for better understandings

ReactiveWebPreview.oml
2021-09-21 09-26-31
Aadhavan Shanmugam

Hi @Miguel,

You can use iframe to display any size of pdf files. 

Refer sample oap to see the code

Find the result with 3 mb pdf file : https://aadhavans.outsystemscloud.com/Sample/Sample

Thanks Aadhavan S

Sample.oap
2023-01-06 16-09-46
Miguel Nicolau

There's a problem with your sample. i can't open it. 

Im using Iframe with binarytobase64 but its not working....

2023-01-06 16-09-46
Miguel Nicolau

Thank you very much for your time :)

2022-03-21 06-55-47
Swapnil Sinha
2023-01-06 16-09-46
Miguel Nicolau

Thank you very much for your time! 

I tried before but it was not working. What should i put on filetype?

2022-03-21 06-55-47
Swapnil Sinha
2023-01-06 16-09-46
Miguel Nicolau

I did it and the PDF shows only a white page.

2022-03-21 06-55-47
Swapnil Sinha
Solution

You can have a look at the attachment for better understandings

ReactiveWebPreview.oml
2023-01-06 16-09-46
Miguel Nicolau

Thanks a lot  Swapnil,

Im doing exactly the same but still the only thing i get is a white page.

2022-03-21 06-55-47
Swapnil Sinha

Please share your oml file for better understanding

2023-01-06 16-09-46
Miguel Nicolau
teste.oml
2022-03-21 06-55-47
Swapnil Sinha
2023-01-06 16-09-46
Miguel Nicolau

still not working. 

You can see the PDF?

2021-10-09 07-57-44
Stefan Weber
 
MVP

Hi,

iam using Adobe PDF embed to display documents. There is also a component on the forge Adobe PDF Embed API - Overview | OutSystems, but i cannot tell anything about it as  i did my own implementation.

Best

Stefan

2023-01-06 16-09-46
Miguel Nicolau

Hi, Stefan.

Thank you very much for your time.

I will give it a try.

2020-10-18 16-19-28
Shahaji Nangare

Hi Miguel,

Try this components - https://www.outsystems.com/forge/component-overview/10147/html-document-viewer

Regards,

Shahaji 

2023-01-06 16-09-46
Miguel Nicolau

Thanks a lot for your time Shahaji, but it's not compatible with my environment.


regards.

Miguel

UserImage.jpg
Sonali Verma

Hii,

@Miguel Nicolau

You Can try below OML Logic for PDF preview.


Preview Document.oml
2023-01-06 16-09-46
Miguel Nicolau

Thanks a lot Solani,


But i can´t open your block.

UserImage.jpg
Sonali Verma
Preview document (2).oml
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.