Title: Protected content
Last modified: August 21, 2016

---

# Protected content

 *  Resolved [TopCasinoWagering](https://wordpress.org/support/users/topcasinowagering/)
 * (@topcasinowagering)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/protected-content-1/)
 * Hi,
 * Thank you for this great plugin.
    I have only a problem. I use [wordpress access control plugin](http://wordpress.org/plugins/wordpress-access-control/)
   and when I protect one page this plugin dosen’t work. Already have try others
   access control plugins and WordPress PDF Templates doesen’t work. I think the
   problem is the plugin render pdf file on other url. url.com/article/pdf instead
   of url.com/article.
 * Already try chang this $dompdf->stream(“result.pdf”, array(“Attachment” => 0));
   to $dompdf->stream(“result.pdf”, array(“Attachment” => 1)); but without luck.
   WordPress Access Control dont let WordPress PDF Templates render the pdf file.
 * Could you help me on this?
    Thank you again for this great plugin.
 * [https://wordpress.org/plugins/wp-pdf-templates/](https://wordpress.org/plugins/wp-pdf-templates/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Viljami Kuosmanen](https://wordpress.org/support/users/zuige/)
 * (@zuige)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/protected-content-1/#post-5096272)
 * Hi! Thanks for checking out our plugin!
 * It looks like the access control plugin is restricting access to the /my-post/
   pdf endpoint because it doesn’t realise /pdf is just an additional parameter,
   not a separate post from /my-post.
 * Have you tried using GET parameters instead of rewritten endpoints? i.e. **/my-
   post?pdf** or **/my-post/?pdf**. Perhaps this way the access control plugin doesn’t
   think this is a separate post and grants access to the PDF version of the post.
 * All the best,
    Antti
 *  Plugin Author [Viljami Kuosmanen](https://wordpress.org/support/users/zuige/)
 * (@zuige)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/protected-content-1/#post-5096273)
 * Hi! Thanks for checking out our plugin!
 * It looks like the access control plugin is restricting access to the /my-post/
   pdf endpoint because it doesn’t realise /pdf is just an additional parameter,
   not a separate post from /my-post.
 * Have you tried using GET parameters instead of rewritten endpoints? i.e. **/my-
   post?pdf** or **/my-post/?pdf**. Perhaps this way the access control plugin doesn’t
   think this is a separate post and grants access to the PDF version of the post.
 * All the best,
    Antti
 *  Thread Starter [TopCasinoWagering](https://wordpress.org/support/users/topcasinowagering/)
 * (@topcasinowagering)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/protected-content-1/#post-5096274)
 * Hi,
 * I have a test site under
    [http://www.rui-nunes.com/educacao-especial-todos-os-alunos/](http://www.rui-nunes.com/educacao-especial-todos-os-alunos/)
 * Login is: demo
    Username: demo
 * Already try using GET instead of /%postname%/ and the result is the same.
    Already
   try usin another access plugin “Pages by User Role” and same thing.
 * Thank you for your help
 *  Plugin Author [Viljami Kuosmanen](https://wordpress.org/support/users/zuige/)
 * (@zuige)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/protected-content-1/#post-5096333)
 * My guess is PDF rendering fails because WP PDF Templates can’t access the /pdf-
   template endpoint to render it. The same sort of thing can occur if the page 
   being rendered requires some sort of session authentification.
 * Can you make an exception to the access control plugin or perhaps somehow give
   the plugin credentials pragmatically? Maybe modify the plugin to send cookies
   along with the file_get_contents() request?
 * Let me know if I can help any further.
 * Cheers!
    Antti
 *  Plugin Author [Viljami Kuosmanen](https://wordpress.org/support/users/zuige/)
 * (@zuige)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/protected-content-1/#post-5096384)
 * [marked topic as resolved]

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Protected content’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-pdf-templates_ffffff.svg)
 * [WordPress PDF Templates](https://wordpress.org/plugins/wp-pdf-templates/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-pdf-templates/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-pdf-templates/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-pdf-templates/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-pdf-templates/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-pdf-templates/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Viljami Kuosmanen](https://wordpress.org/support/users/zuige/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/protected-content-1/#post-5096384)
 * Status: resolved