Using cordova-plugins-printer in capacitor. Issue with path to file. #3689
Unanswered
macsupport
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm new to capacitor.js. and would appreciate some help. I am migrating my App (Framework7) to capacitor and almost everything is working great except for printing. I have successively using cordova-plugin-printer to print a page with specific css files. With the migration to capacitor, the loading of my print css files doesn't work. I'm thinking it is due to a change in the path to the files from cordova to capacitor?
This link path does not load the stylesheet as it does in cordova.
<link rel="stylesheet" href="' + cordova.file.applicationDirectory + 'www/css/app.css">
My previously working print code (prints a div with a specific id, not the entire page):
});
I've tied the following paths with no luck:
Thanks for any input!
Beta Was this translation helpful? Give feedback.
All reactions