# How to preview pdf in add listing

**URL:** <https://community.hivepress.io/t/how-to-preview-pdf-in-add-listing/10078>\
**Category:** HivePress\
**Created:** [March 10, 2024, 4:05pm UTC](https://community.hivepress.io/t/how-to-preview-pdf-in-add-listing/10078 "2024-03-10T16:05:12Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![usedtoapp0](https://community.hivepress.io/user_avatar/community.hivepress.io/usedtoapp0/32/6552_2.png) [@usedtoapp0](https://community.hivepress.io/u/usedtoapp0)\
**Post date:** [March 10, 2024, 4:05pm UTC](https://community.hivepress.io/t/how-to-preview-pdf-in-add-listing/10078/1 "2024-03-10T16:05:12Z")

</div>

Is it possible to have a preview of a pdf file while visiting a listing with a pdf inside?

---

<div class="post-metadata">

**Author:** ![andrii](https://community.hivepress.io/user_avatar/community.hivepress.io/andrii/32/2951_2.png) [@andrii](https://community.hivepress.io/u/andrii)\
**Post date:** [March 12, 2024, 12:38pm UTC](https://community.hivepress.io/t/how-to-preview-pdf-in-add-listing/10078/3 "2024-03-12T12:38:33Z")

</div>

Hi,

If you add the attachment attribute to your listing [How to add listing attributes - HivePress Help Center](https://help.hivepress.io/article/75-how-to-add-listing-attributes) and then add a pdf file to it, you should see a link to that file where you can view it as soon as you go to the listing.

​I hope this is helpful to you.

---

<div class="post-metadata">

**Author:** ![usedtoapp0](https://community.hivepress.io/user_avatar/community.hivepress.io/usedtoapp0/32/6552_2.png) [@usedtoapp0](https://community.hivepress.io/u/usedtoapp0)\
**Post date:** [March 12, 2024, 9:48pm UTC](https://community.hivepress.io/t/how-to-preview-pdf-in-add-listing/10078/4 "2024-03-12T21:48:34Z")

</div>

We still have a problem because we would like to show not all the pdf file but just some pages of it. How is it possible to do that?

---

<div class="post-metadata">

**Author:** ![andrii](https://community.hivepress.io/user_avatar/community.hivepress.io/andrii/32/2951_2.png) [@andrii](https://community.hivepress.io/u/andrii)\
**Post date:** [March 13, 2024, 11:36am UTC](https://community.hivepress.io/t/how-to-preview-pdf-in-add-listing/10078/6 "2024-03-13T11:36:16Z")

</div>

Hi,

Unfortunately, there is no simple solution for this, you will most likely need a custom implementation to configure it this way.

---

<div class="post-metadata">

**Author:** ![usedtoapp0](https://community.hivepress.io/user_avatar/community.hivepress.io/usedtoapp0/32/6552_2.png) [@usedtoapp0](https://community.hivepress.io/u/usedtoapp0)\
**Post date:** [March 17, 2024, 11:01am UTC](https://community.hivepress.io/t/how-to-preview-pdf-in-add-listing/10078/7 "2024-03-17T11:01:24Z")

</div>

I have two other questions:  
-Where I can find the code that generate the pdf previw?  
-We would like that the button “buy now” appear after two user message each other. How is it possible to do that?

---

<div class="post-metadata">

**Author:** ![andrii](https://community.hivepress.io/user_avatar/community.hivepress.io/andrii/32/2951_2.png) [@andrii](https://community.hivepress.io/u/andrii)\
**Post date:** [March 18, 2024, 4:02pm UTC](https://community.hivepress.io/t/how-to-preview-pdf-in-add-listing/10078/9 "2024-03-18T16:02:57Z")

</div>

Hi,

1. Unfortunately, I can’t tell you where exactly because there is no simple code for this, it requires a detailed review and additional testing.

2. This also requires a custom implementation. If customizations are required for your site, please try customizing it using the collection of code snippets [Search · user:hivepress · GitHub](https://gist.github.com/search?q=user%3Ahivepress) and other developer resources, or consider hiring someone for custom work [https://fvrr.co/32e7LvY](https://fvrr.co/32e7LvY)

---

<div class="post-metadata">

**Author:** ![system](https://community.hivepress.io/user_avatar/community.hivepress.io/system/32/13990_2.png) [@system](https://community.hivepress.io/u/system)\
**Post date:** [April 17, 2024, 4:03pm UTC](https://community.hivepress.io/t/how-to-preview-pdf-in-add-listing/10078/10 "2024-04-17T16:03:32Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
