云报表XDOC:基于HTML入门

  使用XDOC云报表非常简单,只需要引入xdoc.js,如下
<script type="text/javascript" src="http://xdoc.sinaapp.com/xdoc.js"></script>
  下面你就可以把HTML输出为各种文档格式了,示例:
<script type="text/javascript">
var html = "<html><h1>百度</h1><img src=\"http://www.baidu.com/img/bdlogo.gif\"></html>";
XDoc.run(html,"pdf");
</script>
  

 
      你也可以输出其它格式,文档格式支持flash、pdf、docx、html、rtf、xls、ppt、epub、png图片等,例如:
XDoc.run(html,"docx")
  

 
      你还可以直接指定一个HTML的地址,输出各种文档,HTML可以是asp、jsp、php等服务器端语言生成的,如下:
XDoc.run("http://xdocfile.sinaapp.com/demo/welcome.html","docx");
 

 
 完整的示例HTML:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>XDOC Server</title>
</head>
<body>
<script type="text/javascript" src="http://xdoc.sinaapp.com/xdoc.js"></script>
<script type="text/javascript">
var html = "<html><h1>百度</h1><img src=\"http://www.baidu.com/img/bdlogo.gif\"></html>";
//XDoc.run(html,"pdf");
//XDoc.run(html,"docx");
XDoc.run("http://xdocfile.sinaapp.com/demo/welcome.html","flash");
</script>
</body>
</html>
 
XDoc2AsciiDoc:小型实用程序,可帮助将xDoc文档转换为AsciiDoc文档 XDoc2AsciiDoc 描述 XDoc2Ascii doc是一个小型应用程序,旨在帮助从文档迁移到文档。 命令行参数 XDoc2AsciiDoc是一个命令行实用程序,并且要求路径中包含Java(5.0+)。 从xdoc文件夹中读取.xdoc文件,在asciidoc文件夹中创建.asc文件 java -cp ./x2a.jar com.consoli.x2a.XDoc2AsciiDoc xdoc asciidoc 从xdoc文件夹中读取.xdoc文件,在C:/ temp文件夹中创建.asc文件 java -cp ./x2a.jar com.consoli.x2a.XDoc2AsciiDoc xdoc C:/temp 如果指定的文件夹有问题,或者输入文件中的任何一个无效或应用程序由于任何原因无法处理它,则将引发异常并将其显示在stdout上。 支持的映射 xDoc文件 AsciiDo 立即下载

相关推荐

XDoc-开源

XDoc 是模式感知的 XML 编辑器

免费报表XDOC从入门到精通(一)简介

        XDOC是一个功能强大的报表工具,用纯Java编写,并且是免费的。它与传统报表有很大不同,有许多创新: ◇  安装部署非常简单 XDOC部署包大小不到12M,可以部署到任何J2EE服务器中。 ◇  设计器服务器一体化设计 报表设计器可以通过浏览器访问服务器直接使用,无需单独安装(需要Java虚拟机)。 ◇  创新的文档式结构 传统的报表结构是条带式或表格式,XDOC为...

875

xdoc:一个超级方便的文档生成工具

文档 一个前端文档生成器 安装 使用 npm 安装 xdoc: $ npm install xdoc -g 用法 初始化文档: $ xdoc init 构建文档: $ xdoc build [options] 在 127.0.0.1:8000 启动服务器: $ xdoc server 在 127.0.0.1:8000 启动服务器,观察源文件变化: $ xdoc watch 将文档发布到 spmjs.org: $ spm doc publish [options] 清理 _site 文件夹: $ xdoc clean 主题 默认主题路径是~/.spm/themes 。 安装主题: git clone https://github.com/elover/xdoc-theme ~/.spm/themes/cmd 安装 spm-doc 时将安装默认主题 。 如何写

XDOC 在线word文档表格预览

http://www.xdocin.com/web.html XDOC XDOC表单将文档、表单、报表融为一体,以Flash的形式嵌入在网页中,提供仿纸质的文档式表单。通过表单API可以与表单进行交互,数据还可以与表单结合生成PDF等格式的文档。表单可以用XDOC设计器轻松制作。 JS文件 &lt;script type="text/javascript" src="http:...

人生不过是一场旅行,你路过我,我路过你,各自向前,各自修行。 7258

阿里云大模型ACP认证模拟考试(一)

摘要:在阿里云大模型高级工程师 ACP 认证暂无真题题库的现状下,模拟题具有重要意义。其依照真实考试设计,涵盖题型、题量与分值分布,助力考生熟悉考试框架,合理分配答题时间精力,提升效率。同时,模拟题紧扣官方课程,能帮助考生精准定位知识盲点,如大模型架构原理和通义千问应用实践等重点内容,以便针对性完善知识体系。此外,通过练习模拟题,考生可掌握不同题型的解题思维与技巧,快速洞察复杂题目本质,提高答题准确率。

davidkorhenn的博客 4767

记一次Nacos线程数飙升排查

Nacos线程飙升问题排查

叭嘣的博客 2649

【亲测免费】 探索xDoc:一款高效、可扩展的文档生成工具

探索xDoc:一款高效、可扩展的文档生成工具 项目简介 是一个开源的文档生成工具,由Java开发者TreeLeafJ创建。它的目标是帮助开发者轻松地将注释转化为结构化的、美观的API文档,适用于各种类型的项目,无论是Web服务还是桌面应用。 技术分析 核心特性 Markdown支持 - xDoc基于Markdown语法,使得编写文档变得简单且直观。开发人员可以利用Markdown的强大功能,如代...

gitblog_00065的博客 555

CANoe信号传输故障排查指南

本文提供了全面的CANoe信号传输故障排查指南,涵盖从硬件连接、通道配置到软件脚本与数据库加载的全链路诊断。针对常见的通道指示灯不亮、信号无法发送及ECU握手失败等问题,给出了基于CANoe工具和CAPL脚本的详细排查步骤与解决方案,帮助工程师系统化定位并解决实车测试中的通信故障。

ice55的博客 270

XDOC的使用和一些问题总结

打开XDOC编辑器一键打开本地xdoc模板编辑器在web开发中使用XDOC1. 准备1.1打开XDOC编辑器新建模板,并取名helloxdocMode 另存为fpd格式 1.2下载web要用到的文件:xdoc.js和fpd.swf。将helloxdocMode.fpd,xdoc.js,fpd.swf放入到web项目中。(我是都放在了WebRoot下了) 1.3新建helloxdoc.html并引

dddaac的专栏 6154

2D激光slam四种算法建图效果对比

2d激光slam四种算法建图比较

m0_73791170的博客 8478

实战5:农作物产量预测 蔬菜产量预测 lstm 完整代码数据-可直接运行-计算机毕设

实战5:农作物产量预测 蔬菜产量预测 lstm 完整代码数据-可直接运行-计算机毕设

机器学习深度学习业余选手 1262

推荐项目:XDoc - 强大的文档管理系统

推荐项目:XDoc - 强大的文档管理系统 项目简介 是一个高效、易用且功能丰富的文档管理系统,由 NewLifeX 团队开发并维护。该项目旨在提供一个现代化的平台,用于组织、管理和分享各类文档,特别适合企业和团队进行知识库建设、文档协作和版本控制。 技术分析 核心特性 Markdown 支持:XDoc 基于 Markdown 编辑,让编写文档变得简单直观,同时也支持 LaTeX 数学公式、M...

gitblog_00048的博客 562

rk3568 rk628桥片hdmi转lvds

RK628 是瑞芯微全新推出的视频桥接芯片,支持丰富的显示接口,支持高分辨率大屏产品转换需求。基于DRM、FB的显示框架易于使用。 输入信号支持:HDMI、RGB、BT.1120,输出信号支持 HDMI、GVI、Dual LVDS、Dual MIPI、MIPI-CSI、RGB、BT.1120,最高支持4K 60fps 输入/输出转换,并且支持输入到输出 1/4~4倍的缩放。

weixin_35723192的博客 1143

云报表XDOC发布了

第一款公有云报表平台XDOC发布了。XDOC云报表部署在新浪云(SAE)中,免费给大家开放。   XDOC云报表具有以下特点: ●  公有云部署,随时随地访问 ●  内容格式丰富:段落、文字、图形、图片、图表、表格、条形码、艺术字、标记语言等 ●  输出文档格式丰富:flash、pdf、docx、html、rtf、xls、ppt、epub、png图片等 ●  安全,不访问数

xdocs的博客 558

选型不再靠感觉:一文看懂 SAP Event Mesh 与 SAP Integration Suite, advanced event mesh 的能力边界

本文对比分析了SAP Event Mesh与SAP Integration Suite, advanced event mesh的差异。SAP Event Mesh适合轻量级场景,主要用于SAP系统间异步通信,支持AMQP、MQTT等协议,消息大小限制为1MB。而advanced event mesh面向企业级事件网络,提供跨云/本地部署、事件治理、监控等高级功能,支持30MB消息和更大存储容量。选择时需考虑业务规模、实时性要求、治理需求等因素:单一SAP生态内扩展可选Event Mesh;跨区域、多云环境

2007 年 ~ 2025 年,深耕 SAP 技术 18 年 156

具身智能:原理、算法与系统 第18章 模仿学习与人类示范

与基于试错机制的强化学习不同,模仿学习假设存在能够提供高质量轨迹示范的专家策略,学习者的目标是在不直接访问专家内部决策机制的情况下,复现或泛化专家的行为模式。此外,选项 GAIL(Option-GAIL)将分层强化学习与对抗模仿结合,学习选项(Options)级别的策略,能够捕捉专家示范中的多模态行为与高层意图。X-Sim 框架提出从真实到模拟再到真实的迁移路径:首先从人类视频中重建物理仿真环境,在仿真中训练状态级策略,随后通过策略蒸馏获得基于视觉的策略,最后通过在线领域自适应对齐真实与仿真观测。

VectorShift的博客 133

云报表XDOC:带参数的HTML

HTML中可以支持参数(如果没有就不能叫报表了),参数的引用方式为:${参数名称},参数的传递方式为json方式,如下: var html = "${公司}"; XDoc.run(html,"flash",{公司:"新浪",徽标:"http://i1.sinaimg.cn/dy/deco/2013/0329/logo/LOGO_1x.png"},"_blank");   XDOC

xdocs的博客 441

温度PID控制PLC程序

温度PID稳定控制程序,适用于欧姆龙PLC,对其他PLC也具有很大参考价值

看看XDOC如何做Word文档预览

移动互联网的到来,使得Word文档在移动端的显示成了问题。大家解决方法大概有三种:转换为PDF、用HTML模拟页面效果、纯网页效果。 XDOC的用了第三种方式,将word文档实时转换为纯网页,生成的页面简洁,尤其对移动端的适配效果好,看下面的例子: 1.示例 原始文档 XDOC预览-PC端 XDOC预览-移动端 在线地址 http://view.xdocin.com/v...

xdocs的博客 4349

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

OV9734 DATASHEET,完整规格书

OV9734完整规格书,包括电气参数,尺寸规格,寄存器配置表等

XDoc 基于Java注释生成API文档

<!--加入maven依赖--> <dependency> <groupId>com.github.treeleafj</groupId> <artifactId>spring-boot-starter-xDoc</artifactId> <version>1.1.0</version> </dependency>

qq_42981995的博客 599

Camera2Demo

在Camera2 的基础上进行封装,使得Camera2一堆初始化逻辑与Activity分离,降低耦合度,完成预览拍照并保存的操作

xDoc 项目教程

xDoc 项目教程 1. 项目目录结构及介绍 xDoc 项目的目录结构如下: xDoc/ ├── doc/ │ └── ... ├── samples/ │ ├── samples/ │ └── spring-boot-starter-xDoc/ ├── xDoc-core/ ├── xDoc-jfinal/ ├── xDoc-spring/ ├── xDoc-view/ ├── .g...

gitblog_00053的博客 510

Word转PDF,PNG,HTML神器XDOC

前言在很多的项目中都会遇到操作Word文件的需求,特别是To B的这种项目。像一些招聘网站最常见的一个功能那就是导出简历啦,可以导出doc,pdf,html等格式。需求:用户上传Word...

u010889990的专栏 1030

html输出doc,Word转PDF,PNG,HTML神器XDOC

Word转PDF,PNG,HTML神器XDOC原创猿天地2020-08-02 17:09:10©著作权文章标签神器;阅读数601©著作权归作者所有:来自51CTO博客作者猿天地的原创作品,如需转载,请注明出处,否则将追究法律责任https://blog.51cto.com/u_14888386/2515901**前言**在很多的项目中都会遇到操作Word文件的需求,特别是To B的这种项目。像一些...

weixin_42302872的博客 357
上一篇: 云报表XDOC发布了
下一篇: 云报表XDOC:带参数的HTML
sqlhub
博客等级 码龄21年 19粉丝 93原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值
⌂ 换网址