How Can I Add Pdf Files In Blocks ?

Hi All,



How can I add PDF files in blocks ?



I can add just images and video , but PDF files not





thanks for your help

adding PDf files.jpg

[quote name='victorb' timestamp='1421321217' post='202669']

Hi All,



How can I add PDF files in blocks ?



I can add just images and video , but PDF files not





thanks for your help

[/quote]

You may use the ordinary HTML code, just insert the direct link to the PDF file.

Or this solution goes against your idea?



Best regards, Alt-team.

[quote name='Alt-team' timestamp='1421323364' post='202673']

You may use the ordinary HTML code, just insert the direct link to the PDF file.

Or this solution goes against your idea?



Best regards, Alt-team.

[/quote]



Thanks ,but I want to insert PDF file in new created block , not just a link to another website .

As far as I can see from the screenshot you are trying to show PDF file in the product tab. May be the default Attachments add-on will help you:

Hi @victorb,



You can simply add PDF into an iframe, please follow [url=“Edit fiddle - JSFiddle - Code Playground”]http://jsfiddle.net/hungryweb/gjp6b0m6/[/url]

```php

[quote name='Vali' timestamp='1421325591' post='202683']

Hi @victorb,



You can simply add PDF into an iframe, please follow [url=“Edit fiddle - JSFiddle - Code Playground”]http://jsfiddle.net/...ryweb/gjp6b0m6/[/url]

```php

[quote name='eComLabs' timestamp='1421325390' post='202682']

As far as I can see from the screenshot you are trying to show PDF file in the product tab. May be the default Attachments add-on will help you:



http://kb.cs-cart.co…les-for-product

[/quote]



Attachment addon are helpful only on PDF with multiple pages.If it is a small PDF with just one page, our customers will prefer to read it on our web-side instead downloading .



thanks

[quote name='victorb' timestamp='1421334978' post='202713']

Attachment addon are helpful only on PDF with multiple pages.If it is a small PDF with just one page, our customers will prefer to read it on our web-side instead downloading .

[/quote]



Thanks for the clarification. Vali provided you with the good and easy solution!

Hi guys,



when this code is integgrated and a webpage called from an android phone a dowload will start.



Regards

Džemal