xwiki export page option for HTML - xwiki

created some pages and when export that page in PDF then PDF page option page comes but when export it as HTML no HTML page option comes.is there any way to get this.html export page

The HTML export offers currently the same minimal user interface as the XAR export, which is to select the list of pages and then to click the appropriate export button, exactly as you have shown in your screenshot: https://www.xwiki.org/xwiki/bin/view/Documentation/UserGuide/Features/Exports#HHTMLExport There are currently no other export options for these types of formats. Maybe in the future.
PDF export, on the other hand, has this intermediary options screen https://www.xwiki.org/xwiki/bin/view/Documentation/UserGuide/Features/Exports#HPDFExport that is specific only to this type of export as it contains options specific to the fact that the page(s) are exported and merged into as single PDF file. These options make little sense for the other type of export formats (XAR or HTML).
I hope this answers your question.

Related

How to export "extra variant media" from odoo website module

I dont see any way to export those extra images. what is the id of those images, i would prefer to use an api to scrape the images

API to export sheet that contains only a chart as a PDF or image

I was wondering if there is any API Call that can perform such operation (export sheet that contains only a chart as a PDF or image).
Firstly i was trying to export a chart from a sheet directly but i found out this is not possible via an API Call.
This is not possible to achieve with Sheets API. These are the interactions with charts that are available in the Sheets API.
With the Drive API, you can export a spreadsheet as a PDF in one line of code making use of the export() method (you can read more about it here). However, this will export the whole spreadsheet and not just the chart (most notably, the grid lines will be visible).
I would say that the best way to export just the chart is using Apps Script. It cannot be "directly" done here, as charts can only be fetched from a spreadsheet as images. Therefore, you then have to transform said image into a pdf. This can be accomplished in two ways: you can either create a blank pdf and append the image, or you can paste the image into a docs (or slides) file and save that docs file as a pdf.
Here I have opted for the second one:
function myFunction(){
var fileId = "YOUR_SPREADSHEET_ID";
var folderId = "YOUR_FOLDER_ID";
var chart = SpreadsheetApp.openById(fileId).getSheetByName("Sheet1").getCharts()[0];
var tempDocs = DocumentApp.create("temp");
tempDocs.getBody().appendImage(chart.getBlob());
tempDocs.saveAndClose();
docblob = DocumentApp.openById(tempDocs.getId()).getAs('application/pdf');
docblob.setName("myName");
DriveApp.getFolderById(folderId).createFile(docblob);
DriveApp.getFileById(tempDocs.getId()).setTrashed(true);
}
Having said that, you can also "brute force" export the entire spreadsheet as a pdf. You can achieve this by using the Drive API - Files - Export function. Note that this method belongs to the Drive API, not the Sheets API.

writing html & js code in rich text editor in hippo, so the code functionality will reflect on site

iam new in hippo cms. Is there any way to write html or java script code in rich text editor in hippo cms. so the functionality of any code (html or js) should reflect on pages of site.
function onclick(){
alert('hello');
}
This code should be add in rich text editor and on button click hello should be show on page.
Thanks in advance.
by default js will be removed from rich text fields. While the behavior can be disabled, generally speaking it is not recommended. This requires your editors to know not only JS/Html but also the interactions with your existing templates. It also allows attack vectors from inside your content, though for this they need access to the cms.
https://www.onehippo.org/library/concepts/document-types/html-fields/html-cleaning.html

How do I export all pages below a page in confluence using a script

I'm capturing meeting notes in a page structure in confluence. I want to export all the meeting notes to a share drive for others to read. I've found notes on how to export a page or a space but not the pages below a page. e.g. I want everything below "Parent Page" but not anything else.
e.g.
Space
Unrelated Pages
Unrelated Pages
Parent of Parent
Parent Page
Child Page 1
Child Page 2
Child page 3
I want to drag the child pages to a share drive. I'm looking to use one of the following e.g. curl, .bat files, python, R etc.
This is on the cloud version of confluence
Go to the Space directory, find the relevant space and click the (i) icon there to get to the space details page. From there, click either Space Operations/PDF Export, or Content Tools/Export, then choose Custom Export. You’ll be able to select the list of pages to be exported. (All pages under a given page can be selected by clicking Deselect All and then clicking the checkbox for the parent page. All child pages will be selected automatically.)
My first instinct was to give the "other" folks who want to read the meeting notes, (read) access to confluence itself - thats what confluence was meant for.
But if you're dead set on living in the 90s and downloading stuff to another drive, you can try the Page Tree Word Exporter plugin (But this is manual)
Script wise, you can do the following:
Get all the child pages with the REST API: Make a GET call to
https://confluence-domain.com/rest/api/content/search?cql=parent={Parent Page-id}
This will return a "results" array with info about the child pages. Parse out the "id" fields. (Hint: if you are using bash, you can use the beautiful jq library https://stedolan.github.io/jq/
Once you have the child page IDs, you can export each individually to PDF using:
wget https://confluence-domain.com/spaces/flyingpdf/pdfpageexport.action?pageId=xxxx -O mypage.pdf
This blog might help you in your coding: http://javamemento.blogspot.no/2016/05/jira-confluence-3.html
Step 1 (bottom left):
Step 2:
To export all pages below a page, check the parent page.
If the export is absent, the admin needs to give you the permissions for it.

Utilities for exporting/printing graphs?

given that the functionality for exporting graphs to SVG or PNG in the Neo4j server page is broken (see SO article), are there any utilities out there that can export a graph from Neo? something that would produce a PDF perhaps?
With not many changes, you could make it work with http://www.cloudformatter.com/CSS2Pdf to format the SVGs in browser to PDF. That set of pages has some d3 samples like this: http://www.cloudformatter.com/CSS2Pdf.SVGCharts.d3Charts
I took one of the sample charts and rendered to PDF through the Javascript and the remote formatter. The page I selected was here and I took one of those charts:
http://graphgist.neo4j.com/#!/gists/1428842b2170702400451777c2bc813f
The code needs some minor change to ensure that Neo4j puts the svg namespace on the element. The samples on that page do not. But the rendering is near perfect. See the web page on the right and PDF result on the left. I only formatted the SVG and not the whole page (where the silver background exists) and that seems to be the only difference.