Sorry, I'm still not sure
Support Forum
I reviewed your application. First of all, you should never use our export server. Please create your own using our libs and use it instead.
Regarding to styles, please check this and implement on your web server https://github.com/bryntum/pdf-export-server/blob/main/docs/architecture.md#to-generate-pdf-successfully-we-need-to-make-sure-resources-requested-by-the-page-are-accessible-to-the-page
All the best,
Alex
I put the css file in the assets folder, but it still hasn't loaded
pdfExport: {
exportServer: environment.api + '/app/project-task/Generate-Gantt-Pdf',
// exportServer: 'https://dev.bryntum.com:8082',
fetchOptions: {
headers: {
'Authorization': 'Bearer ' + localStorage.getItem('token')
}
},
// Development config
translateURLsToAbsolute: 'assets/',
openAfterExport: true,
openInNewTab: false,
// For production replace with this one. See README.md for explanation
// translateURLsToAbsolute : 'http://localhost:8080/resources/', // Trailing slash is important
keepPathName: false
},
- Attachments
-
- 屏幕截图 2022-12-13 221318.png (189.17 KiB) Viewed 341 times
I have put the css file on the server, configured the path, and have the style label and correct incoming address in the parameters, but it still doesn't work
pdfExport: {
exportServer: environment.api + '/app/project-task/Generate-Gantt-Pdf',
// exportServer: 'https://dev.bryntum.com:8082',
fetchOptions: {
headers: {
'Authorization': 'Bearer ' + localStorage.getItem('token')
},
},
// Development config
translateURLsToAbsolute: 'http://ws003260:997/testc/',
openAfterExport: true,
openInNewTab: false,
// For production replace with this one. See README.md for explanation
// translateURLsToAbsolute : 'http://localhost:8080/resources/', // Trailing slash is important
keepPathName: false
},
- Attachments
-
- 屏幕截图 2022-12-14 124449.png (56.74 KiB) Viewed 330 times
-
- 屏幕截图 2022-12-14 124347.png (200.27 KiB) Viewed 330 times
Hi shimnx,
It's hard to say what's wrong without a test case. Too many possible problems, starting form access right, finishing wrong paths.
I would recommend you to go throw our guide step by step and check all moments, also compare relative paths you used in the code and real paths on the server. Very possible that relative path contains subfolder and expecting CSS files in subfolder on the server too.
I see path on the HTML file screenshots. Are you able to get files using that links? I mean not directory, but the file itself.
All the best,
Alex
Hey shimnx,
Is this last styled exporting the same problem that you were discussing with Alex?? Or is it a different topic?? Without an example, is difficult to say what is the cause and how to solve your problem there. Besides, if it's a different topic, please create a new post on our forum to maintain our "one problem one topic" approach.
Best regards,
Márcio