Module Print Entity used with DOMPdf in Drupal does not apply css on the pdf - drupal

I'm using the module Entity Print in my Drupal application,my default pdf engine is DOMPdf. My nodes are built with Site Studio, when I try to print a Node, the css is not applied at all and never loaded.
Have you any recommendation ?
Reading documentation

Related

Is there a way to reuse the built-in HTML editor in Cofoundry

I would like to embed Cofoundry's built-in administration interface visual editor in other custom non-admin pages. The idea is not to use any of the fancy attributes like [HTML], but rather be able to load the editor using low level JavaScript and HTML instead of installing yet another editor myself and use that.
I suppose it is a standard HTML editor, so given the URLs for it in Cofoundry, I assume it would be possible to use the editor's own standard documentation for embedding the editor.
So, question, which editor is it - and what are the built-in URLs (paths) to it's components?
As of v0.9 Cofoundry uses TinyMCE as the HTML editor. You'd be better off using your own build of the editor than linking to the Cofoundry source as it's liable to change.

Override compodoc template

Hello I am using compodoc 1.1.5 to generate the documentation for my angular project. Compodoc provides the ability to override the template by using the option --template folder_name. I tried to override the menu partial by creating a partial folder and putting a menu.hbs in it with the code from the original menu.hbs (the menu disappeared completely) even if I do not modify the original code. I am getting this error
Uncaught SyntaxError: Invalid or unexpected token menu-wc.js:34
Does any one have any idea about the proper way to override templates
Either create your own theme or create an additional doc folder.
The additional docs folder will accept .md and .html files.
See https://compodoc.app/guides/usage.html for more.

Drupal: Custom CSS not integrating

I recently started using Drupal for a new website I am trying to build. Front-end is normally what I focus on and I'd use external services to integrate backend functions. In this (and potentially from now on) I want to start using Drupal. Now, I have installed a bootstrap module and want to start adding own css from there but I can't seem to figure out how/where. I can't do it straight into the bootstrap style files so I - apparently - need to create my own theme and place css files in there. This is what I have done so far:
1: Have my css file with the code.
2: Created a new folder next to the bootstrap folder in sites/all/themes.
3: Put the css file in there.
4: Created an my_theme.info file.
But it is not resulting in any changes on the website (it also does not show up in the source code) most likely because it is not being called by Drupal. How can I make sure Drupal calls my css code?
Thanks in advance and take care!
Assuming this is DRUPAL 7 (Drupal 8 uses yaml)
Create a subtheme of the theme you choose.
In the YOURTHEME.info you add a line like stylesheets[all][] = css/style.css
In YOURTHEME/css directory, here you can start writing your css rules in the file style.css
Make sure caching is off or else you will not see your css being updated.

overriding styles defined on production server for DITA XML files

Here is scenario I am working in.
Using Eclipse with IXIASoft DITA CMS and Oxygen XML editor.
Retrieve files stored in DITA CMS and edit in oxygen.
Generate pdf output. PDF creation is controlled by antennae house libraries on a production server and I do not have access to xsl stylesheets or css files on production server.
I tried embedding styles in dita file, but it appears that files on production server override whatever I do. Tried linking to local css file, but it too seems to be overridden.
Also limited by what is allowed in the custom DTD. Did find an outputclass attribute for the p element, but not sure how to use it. Any suggestions.
The PDF output generated via the DITA Open Toolkit (used also by Ixiasoft) is not related in any way to CSS styling. The DITA content gets translated to an XSL-FO format which then gets processed to PDF using a PDF processor like the default Apache FOP.
So you need access to the XSLT code on the server side in order to provide any PDF customization.
Usually a PDF customization without directly modifying the XSLT code from the DITA OT is done like this:
http://www.oxygenxml.com/doc/ug-oxygen/#topics/dita_pdf_output_customization.html
Regards,
Radu
If you cannot add a plugin to the DITA-OT image on the server, you're actually out of luck for changing the PDF output. If, however, you can create a plugin for the DITA-OT image used by Ixiasoft, and can run the ant integrator on that image, then you should be able to change those styles.
Keep in mind that overriding PDF is not for the faint of heart and if you have no experience with XSLT and XSL-FO, I suggest you get a consultant to help you.
Julio J. Vazquez
Write Spirit

Style Drupal's Print Module PDF

How would one do this in Drupal 7? I want to add a few small style edits to the way the PDF outputs. I am using TCPDF. I read somewhere that its not posible with TCPDF, but other sources say it is. Should I be switching to dompdf? I've read the documentation but just can't seem to understand which file generates the PDF.
I have the module successfully generating a PDF from a View, so this is the last step in moving on with this project.
For anytime you want to style PDFs use DOMPDF, it will be less painful. Then style your pdf using print.css in the sites/domain.com/themes/yourtheme/css folder.
You can also copy the print.tpl.php file from the module's folder and paste it in sites/domain.com/themes/yourtheme/templates to choose exactly what you want to display in your pdf.

Resources