confluence PDF Export Gives "Page Not Found" Error
Asked by Xie Chen:

Hi, I was trying to export my page to PDF but encounter this error " Page Not Found"

We can't find that page. This could be because:

* The page doesn't exist.
* The page exists, but you don't have view permission for that space.

However, I can export to word file but not PDF. I had tried to reboot the system few times. But still couldn't resolve the issue.


Answers:
author: Shannon S
body: Xie,

Hello, thank you for reaching out! Happy to help look into this issue for you.

Can you tell me:

1. What version of Confluence are you running?
2. Does this occur for all pages?
3. Does the name of the page have any special characters in it?
4. Does this occur for all users?

Thank you for your help.

Regards,

Shannon

comments: author: Xie Chen
body: Hi Shannon,

Thank you for helping me look into the issue. Please see the detail information below.

1. Confluence version: 6.14.2

2. The issue occur for all pages.

3. The name of page doesn't have any special characters (eg. "test" as the page name)

4. I'm the only user for this confluence product.

Thank you.


author: Shannon S
body: Xie,

Thank you for verifying.

We'll need to see your [Confluence logs](https://confluence.atlassian.com/doc/working-with-confluence-logs-108364721.html) because this is definitely not a regular issue. I would recommend opening the server logs and tail them, then trigger the error. You'll be able to match the timestamp with the exact time that you triggered the error.

It might also help if you aren't using english as your Confluence language, to set it to english temporarily and see if you still have the issue.

Regards,

Shannon


author: Xie Chen
body: Hi,

I'm using English as my Confluence language. The log retrieved is as below:

2019-04-16 16:21:41,891 WARN \[http-nio-8090-exec-9\] \[confluence.extra.flyingpdf.ConfluenceExportUserAgent\] getImageResource Could not retrieve image resource <https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png> during Confluence export  
-- url: /spaces/flyingpdf/pdfpageexport.action \| page: 3211269 \| traceId: 5c662f8c2a7b58d5 \| userName: xiec0005 \| referer: http://localhost:8090/display/PHDXC/test \| action: pdfpageexport  
2019-04-16 16:21:41,929 WARN \[http-nio-8090-exec-9\] \[confluence.extra.flyingpdf.ConfluenceExportUserAgent\] getImageResource Could not retrieve image resource <https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png> during Confluence export  
-- url: /spaces/flyingpdf/pdfpageexport.action \| page: 3211269 \| traceId: 5c662f8c2a7b58d5 \| userName: xiec0005 \| referer: http://localhost:8090/display/PHDXC/test \| action: pdfpageexport  
2019-04-16 16:21:42,222 WARN \[http-nio-8090-exec-9\] \[extra.flyingpdf.util.ImageFileCacheUtils\] removeTempDirectory Cannot remove temporary directory: G:\\temp\\pdf-export50e3c90d-f39d-4e26-85c7-0e6f0574c5f7  
-- url: /spaces/flyingpdf/pdfpageexport.action \| page: 3211269 \| traceId: 5c662f8c2a7b58d5 \| userName: xiec0005 \| referer: http://localhost:8090/display/PHDXC/test \| action: pdfpageexport  
2019-04-16 16:22:43,464 WARN \[Caesium-1-2\] \[impl.schedule.caesium.JobRunnerWrapper\] runJob Scheduled job LaasPerformanceLoggingJob#LaasPerformanceLoggingJob completed unsuccessfully with response JobRunnerResponse\[runOutcome=ABORTED,message='LaaS performance logging is turned off'\]  
2019-04-16 16:27:43,465 WARN \[Caesium-1-2\] \[impl.schedule.caesium.JobRunnerWrapper\] runJob Scheduled job LaasPerformanceLoggingJob#LaasPerformanceLoggingJob completed unsuccessfully with response JobRunnerResponse\[runOutcome=ABORTED,message='LaaS performance logging is turned off'\]


author: Shannon S
body: Xie,

Thank you for confirming! A lot of issues can occur when english isn't the language set on Confluence so I just wanted to rule that out.

Let's try the following:

1. Can you confirm there are no PDF customisations set on the instance?
2. [Enable safe mode](https://confluence.atlassian.com/upm/disabling-and-enabling-apps-273875716.html) on your Confluence instance and try to replicate the issue.
3. Create a single page with just text, no images, and see if you can successfully export this.

Regards,

Shannon


Tags: confluence-server

server