-
2021-10-06 14:53:05
using System; using System.CodeDom.Compiler; using System.ComponentModel; using System.Diagnostics; using System.IO; using System.Windows; using System.Windows.Controls; using System.Windows.Markup; using DevExpress.Spreadsheet; using DevExpress.Xpf.Bars; using DevExpress.Xpf.DocumentViewer; using DevExpress.Xpf.PdfViewer; using DevExpress.Xpf.RichEdit; using DevExpress.Xpf.Spreadsheet; namespace JGSoft.Wpf.Component.Controls { public class PdfControl : Window, IComponentConnector { public PdfControl() { this.InitializeComponent(); } public PdfControl(string file) { this.InitializeComponent(); this.WindowMax(); this.Openfile(file); } private void WindowMax() { this.normaltop = base.Top; this.normalleft = base.Left; this.normalwidth = base.Width; this.normalheight = base.Height; double top = SystemParameters.WorkArea.Top; double left = SystemParameters.WorkArea.Left; double num = SystemParameters.PrimaryScreenWidth - SystemParameters.WorkArea.Right; double num2 = SystemParameters.PrimaryScreenHeight - SystemParameters.WorkArea.Bottom; base.Left = 0.0; base.Top = 0.0; base.Height = SystemParameters.WorkArea.Height; base.Width = SystemParameters.WorkArea.Width; } public void Openfile(string filename) { this.grid.Children.Clear(); bool flag = ".doc.docx".ToUpper().Contains(Path.GetExtension(filename).ToUpper()); if (flag) { RichEditControl richEditControl = new RichEditControl(); richEditControl.LoadDocument(filename); this.grid.Children.Add(richEditControl); } else { bool flag2 = ".xls.xlsx.xlsm.xlt.xltx.xltm".ToUpper().Contains(Path.GetExtension(filename).ToUpper()); if (flag2) { SpreadsheetControl spreadsheetControl = new SpreadsheetControl(); IWorkbook document = spreadsheetControl.Document; document.LoadDocument(filename); this.grid.Children.Add(spreadsheetControl); } else { bool flag3 = ".pdf".ToUpper().Contains(Path.GetExtension(filename.ToUpper())); if (flag3) { this.pdf = new PdfViewerControl(); this.pdf.ZoomMode = ZoomMode.ActualSize; this.pdf.OpenDocument(filename); this.pdf.ZoomFactor = 0.38; this.pdf.CommandBarStyle = DevExpress.Xpf.DocumentViewer.CommandBarStyle.Ribbon; UpdateAction updateAction = new UpdateAction(); updateAction.ElementName = "bRibbon"; updateAction.PropertyName = "Visibility"; updateAction.Value = Visibility.Collapsed; this.pdf.CommandProvider = new PdfCommandProvider(); this.pdf.CommandProvider.RibbonActions.Add(updateAction); this.pdf.AttachmentsViewerSettings = new PdfAttachmentsViewerSettings(); this.pdf.AttachmentsViewerSettings.HideAttachmentsViewer = true; this.pdf.ThumbnailsViewerSettings = new PdfThumbnailsViewerSettings(); this.pdf.ThumbnailsViewerSettings.HideThumbnailsViewer = true; this.pdf.OutlinesViewerSettings = new PdfOutlinesViewerSettings(); this.pdf.OutlinesViewerSettings.HideOutlinesViewer = true; this.grid.Children.Add(this.pdf); } else { bool flag4 = ".txt".ToUpper().Contains(Path.GetExtension(filename.ToUpper())); if (flag4) { RichEditControl richEditControl2 = new RichEditControl(); richEditControl2.LoadDocument(filename); this.grid.Children.Add(richEditControl2); } else { bool flag5 = ".png.jpg".ToUpper().Contains(Path.GetExtension(filename.ToUpper())); if (!flag5) { bool flag6 = ".mp4".ToUpper().Contains(Path.GetExtension(filename.ToUpper())); if (!flag6) { throw new Exception("未知文件格式"); } MediaElement mediaElement = new MediaElement(); mediaElement.Source = new Uri(filename); this.grid.Children.Add(mediaElement); } } } } } } [DebuggerNonUserCode] [GeneratedCode("PresentationBuildTasks", "4.0.0.0")] public void InitializeComponent() { bool contentLoaded = this._contentLoaded; if (!contentLoaded) { this._contentLoaded = true; Uri resourceLocator = new Uri("/JGSoft.Wpf.Component;component/controls/pdfcontrol.xaml", UriKind.Relative); Application.LoadComponent(this, resourceLocator); } } [DebuggerNonUserCode] [GeneratedCode("PresentationBuildTasks", "4.0.0.0")] [EditorBrowsable(EditorBrowsableState.Never)] void IComponentConnector.Connect(int connectionId, object target) { if (connectionId != 1) { this._contentLoaded = true; } else { this.grid = (Grid)target; } } private PdfViewerControl pdf; private double normaltop; private double normalleft; private double normalwidth; private double normalheight; internal Grid grid; private bool _contentLoaded; } }
更多相关内容 -
和秋叶一起学Excel.pdf
2019-07-11 08:35:46《和秋叶一起学Excel》,是由秋叶团队原创开发的,主要解决读者学习Excel从入门到进阶的系统课程,全书以图文+配套习题的形式展示。适合整天与表格打交道的朋友下载学习。 -
EXCEL2016宝典第9版.pdf
2019-07-19 15:36:30中文版Excel 2016宝典(第9版) 由享誉全球的“电子表格先生”John Walkenbach撰写,将引导你学习Excel 2016的卓越新能,展示如何充分利用这个*版本的能力。这本权威指南堪称一座知识金矿,涵盖运用模板、实现公式、... -
中文版Excel 2016宝典 第9版 大文件清晰(完美书签).pdf.pdf
2019-12-19 14:00:40《中文版Excel 2016宝典(第9版) 由享誉全球的“电子表格先生”John Walkenbach撰写,将引导你学习Excel 2016的卓越新能,展示如何充分利用这个*版本的能力。这本权威指南堪称一座知识金矿,涵盖运用模板、实现公式、... -
绝了!Excel可以这样用:职场Excel效率提升秘笈【PDF】
2019-02-13 13:59:03实战应用篇为职场Excel技能提升,系统讲解了实际工作中常见的7大类问题,内容包括数据整理、统计计算、查找筛选、数据展示、多表操作、打印输出和数据安全等。 本书内容丰富,深度和广度兼顾,可以帮助职场中经常... -
前端实现文件预览(word、excel、pdf、ppt、mp4、图片、文本)
2022-04-21 14:25:41前端实现文件预览(word、excel、pdf、ppt、mp4、图片、文本) -
java excel转pdf格式并在网页上展示
2019-09-12 15:52:20IE不支持页面展示,只能下载,博主用的浏览器为:chrome 先看效果: 实现方式: 1.首先下载一个openoffice。 2.执行bat脚本 D: cd D:\abc\program soffice -headless -accept="socket,host=127.0.0.1,port=...IE不支持页面展示,只能下载,博主用的浏览器为:chrome
先看效果:
实现方式:
1.首先下载一个openoffice。
2.执行bat脚本
D: cd D:\abc\program soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard
路径为自己安装openoffice的路径(一闪而过就是出错了)
3.代码:
下面代码为excel转pdf的过程
String fileDir = "C:\\Users\\a\\workspace\\boot\\WebRoot\\asset\\distfile\\"+SRCFile; String pdfString=SRCFile.substring(0,SRCFile.indexOf('.'))+".pdf"; String pdfDir = "C:\\Users\\a\\workspace\\boot\\WebRoot\\asset\\distfile\\"+pdfString; System.out.println("pdfDir:" + SRCFile); OfficeToPDF otp = new OfficeToPDF(); File file = new File(fileDir); if(!file.exists()) { file.mkdirs(); } otp.docToPdf(new File(fileDir), new File(pdfDir));
OfficeToPDF类:
import java.io.File; import com.artofsolving.jodconverter.DocumentConverter; import com.artofsolving.jodconverter.openoffice.connection.OpenOfficeConnection; import com.artofsolving.jodconverter.openoffice.connection.SocketOpenOfficeConnection; import com.artofsolving.jodconverter.openoffice.converter.OpenOfficeDocumentConverter; import com.artofsolving.jodconverter.openoffice.converter.StreamOpenOfficeDocumentConverter; public class OfficeToPDF { public void docToPdf(File inputFile, File outputFile){ //启动服务 String OpenOffice_HOME = "D:\\abc";// 这里是OpenOffice的安装目录 if(OpenOffice_HOME.charAt(OpenOffice_HOME.length()-1)!='/'){ OpenOffice_HOME+="/"; } Process pro = null; OpenOfficeConnection connection = null; // 启动OpenOffice的服务 String command = OpenOffice_HOME + "program/soffice.exe -headless -accept=\"socket,host=localhost,port=8100;urp;\""; // connect to an OpenOffice.org instance running on port 8100 try{ pro = Runtime.getRuntime().exec(command); connection = new SocketOpenOfficeConnection(8100); connection.connect(); // convert DocumentConverter converter = new StreamOpenOfficeDocumentConverter(connection); System.out.println(inputFile+"="+outputFile); converter.convert(inputFile, outputFile); }catch(Exception ex){ System.out.println("程序出错了"); ex.printStackTrace(); }finally{ // close the connection if(connection!=null){ connection.disconnect(); connection = null; } pro.destroy(); } System.out.println("生成"+outputFile.getName()); } //生产pdf线程 static class TestThread extends java.lang.Thread{ private File inputFile; private File outputFile; public void run(){ OfficeToPDF t = new OfficeToPDF(); t.docToPdf(inputFile, outputFile); System.out.println(outputFile.getName()+"文件已生成"); } public void setInputFile(File inputFile) { this.inputFile = inputFile; } public void setOutputFile(File outputFile) { this.outputFile = outputFile; } } }
jsp页面设置一个路径:
<iframe src="${SRCFile }" id="display" style="width:100%;height:100%;"></iframe>
-
Excel2010SQL完全应用.pdf
2019-07-23 08:05:51《Excel疑难千寻千解丛书:Excel 2010 SQL完全应用》是“Excel疑难千寻千解”丛书之一,为读者展示了在Excel2010中运用SQL语句解决疑难问题的实战技巧。本书包含SQL基础入门、运算符、常用函数、日期、排序、聚合... -
JAVA语言实现excel转pdf文件
2021-02-25 19:29:25本文主要向大家介绍了JAVA语言实现excel转pdf文件,通过具体的内容向大家展示,希望对大家学习JAVA语言有所帮助。源码:packageexcel_pdf;importjava.io.File;importjava.io.FileOutputStream;importjava.io....本文主要向大家介绍了JAVA语言实现excel转pdf文件,通过具体的内容向大家展示,希望对大家学习JAVA语言有所帮助。
源码:package excel_pdf;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import com.itextpdf.text.Document;
import com.itextpdf.text.DocumentException;
import com.itextpdf.text.Element;
import com.itextpdf.text.Font;
import com.itextpdf.text.PageSize;
import com.itextpdf.text.Paragraph;
import com.itextpdf.text.pdf.BaseFont;
import com.itextpdf.text.pdf.PdfPCell;
import com.itextpdf.text.pdf.PdfPTable;
import com.itextpdf.text.pdf.PdfWriter;
import jxl.Cell;
import jxl.Range;
import jxl.Sheet;
import jxl.Workbook;
import jxl.read.biff.BiffException;
public class ExcelToPdf {
public static void main(String[] args) throws DocumentException, IOException {
Document document = new Document(PageSize.A4,0,0,50,0);
PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream("F:/PdfTable2.pdf"));
//字体设置
/*
* 由于itext不支持中文,所以需要进行字体的设置,我这里让itext调用windows系统的中文字体,
* 找到文件后,打开属性,将文件名及所在路径作为字体名即可。
*/
//创建BaseFont对象,指明字体,编码方式,是否嵌入
BaseFont bf=BaseFont.createFont("C:\\Windows\\Fonts\\simkai.ttf", BaseFont.IDENTITY_H, false);
//创建Font对象,将基础字体对象,字体大小,字体风格
Font font=new Font(bf,13,Font.NORMAL);
int rowNum = 0;
int colNum = 0;
try {
Workbook workbook=Workbook.getWorkbook(new File("C:\\Users\\user\\Desktop\\船体生产准备接口说明0510 .xls"));
Sheet sheet=workbook.getSheet(1);
int column=sheet.getColumns();
//下面是找出表格中的空行和空列
List nullCol = new ArrayList<>();
List nullRow = new ArrayList<>();
for(int j=0;j int nullColNum = 0;
for(int i=0;i Cell cell=sheet.getCell(j, i);
String str = cell.getContents();
if(str == null || "".equals(str)){
nullColNum ++ ;
}
}
if(nullColNum == sheet.getRows()){
nullCol.add(j);
column--;
}
}
for(int i=0;i int nullRowNum = 0;
for(int j=0;j Cell cell=sheet.getCell(j, i);
String str = cell.getContents();
if(str == null || "".equals(str)){
nullRowNum ++ ;
}
}
if(nullRowNum == sheet.getColumns()){
nullRow.add(i);
}
}
PdfPTable table=new PdfPTable(column);
Range[] ranges = sheet.getMergedCells();
PdfPCell cell1=new PdfPCell();
for(int i=0;i if(nullRow.contains(i)){ //如果这一行是空行,这跳过这一行
continue;
}
for(int j=0;j if(nullCol.contains(j)){ //如果这一列是空列,则跳过这一列
continue;
}
boolean flag = true;
Cell cell=sheet.getCell(j, i);
String str = cell.getContents();
for(Range range : ranges){ //合并的单元格判断和处理
if(j >= range.getTopLeft().getColumn() && j <= range.getBottomRight().getColumn()
&& i >= range.getTopLeft().getRow() && i <= range.getBottomRight().getRow()){
if(str == null || "".equals(str)){
flag = false;
break;
}
rowNum = range.getBottomRight().getRow() - range.getTopLeft().getRow()+1;
colNum = range.getBottomRight().getColumn() - range.getTopLeft().getColumn()+1;
if(rowNum > colNum){
cell1 = mergeRow(str, font, rowNum);
cell1.setColspan(colNum);
table.addCell(cell1);
}else {
cell1 = mergeCol(str, font, colNum);
cell1.setRowspan(rowNum);
table.addCell(cell1);
}
//System.out.println(num1 + " " + num2);
flag = false;
break;
}
}
if(flag){
table.addCell(getPDFCell(str,font));
}
}
}
workbook.close();
document.open();
document.add(table);
document.close();
writer.close();
} catch (BiffException | IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
//合并行的静态函数
public static PdfPCell mergeRow(String str,Font font,int i) {
//创建单元格对象,将内容及字体传入
PdfPCell cell=new PdfPCell(new Paragraph(str,font));
//设置单元格内容居中
cell.setHorizontalAlignment(Element.ALIGN_CENTER);
cell.setVerticalAlignment(Element.ALIGN_MIDDLE);
//将该单元格所在列包括该单元格在内的i行单元格合并为一个单元格
cell.setRowspan(i);
return cell;
}
//合并列的静态函数
public static PdfPCell mergeCol(String str,Font font,int i) {
PdfPCell cell=new PdfPCell(new Paragraph(str,font));
cell.setMinimumHeight(25);
cell.setHorizontalAlignment(Element.ALIGN_CENTER);
cell.setVerticalAlignment(Element.ALIGN_MIDDLE);
//将该单元格所在行包括该单元格在内的i列单元格合并为一个单元格
cell.setColspan(i);
return cell;
}
//获取指定内容与字体的单元格
public static PdfPCell getPDFCell(String string, Font font)
{
//创建单元格对象,将内容与字体放入段落中作为单元格内容
PdfPCell cell=new PdfPCell(new Paragraph(string,font));
cell.setHorizontalAlignment(Element.ALIGN_CENTER);
cell.setVerticalAlignment(Element.ALIGN_MIDDLE);
//设置最小单元格高度
cell.setMinimumHeight(25);
return cell;
}
}
复制粘贴就好 改变地址值和转换成pdf的文件名。
本文由职坐标整理并发布,希望对同学们有所帮助。了解更多详情请关注编程语言JAVA频道!
-
Android应用内展示word、excel、pdf、ppt等文件
2020-10-21 16:39:36笔者最近两个项目里头都有需要展示文件的功能,于是做了一番调研,发现asce1885给出一份方案,不过都是关于pdf的展示:http://www.jianshu.com/p/1bf49af6584d,显然不符合笔者的要求,笔者的项目里需要展示的文件...笔者最近两个项目里头都有需要展示文件的功能,于是做了一番调研,发现asce1885给出一份方案,不过都是关于pdf的展示:http://www.jianshu.com/p/1bf49af6584d,显然不符合笔者的要求,笔者的项目里需要展示的文件格式并不单一,后来经过一番搜索最后敲定使用腾讯的Tbs,可以在应用内打开各类型文件。不过这过程也有点坑。
什么是Tbs
腾讯浏览服务(TBS,Tencent Browsing Service)整合腾讯底层浏览技术和腾讯平台资源及能力,提供整体浏览服务解决方案。TBS更多详细的介绍,请移步:https://x5.tencent.com/tbs/
关于官网接入的坑
关于接入Tbs服务官网给出了接入文档:https://x5.tencent.com/tbs/guide/sdkInit.html,很搞笑的是我找了很久也没有发现具有打开文件能力demo工程,官网sdk里头的demo工程居然都没有展示文件功能,后来我发现官网论坛里有不少朋友留言,不知如何使用SdK打开文件,因此本文主要将的是如何使用SDK打开文件,以及对sdk打开文件的功能的简单封装。
如何接入
参考:https://x5.tencent.com/tbs/guide/sdkInit.html
- 第一步
下载 SDK jar 包放到工程的libs目录下
image.png
- 第二步
x5暂时不提供64位so文件,为了保证64位手机能正常加载x5内核,进行以下两项设置:
(1)打开对应module中的build.gradle文件,在文件的android{}中的defaultConfig{}里(如果没有defaultConfig{}则手动添加)添加如下配置: ndk{abiFilters "armeabi"}image.png
(2)添加对应目录下的liblbs.so文件
image.png
如何展示文件
显示文件关键代码,例如:
Bundle localBundle = new Bundle(); localBundle.putString("filePath", mFile.toString()); localBundle.putString("tempPath", Environment.getExternalStorageDirectory() + "/" + "TbsReaderTemp"); if (this.mTbsReaderView == null) this.mTbsReaderView = getTbsReaderView(context); boolean bool = this.mTbsReaderView.preOpen(getFileType(mFile.toString()), false); if (bool) { this.mTbsReaderView.openFile(localBundle); }
TbsReaderView是封装的用于展示文件的View,继承与FramLayout,首先调用mTbsReaderView.preOpen(getFileType(mFile.toString()), false)进行文件打开之前的初始化工作,然后调用的mTbsReaderView.openFile(localBundle)打开文件,localBundle里包含有文件在本地的路径,加载文件步骤十分简单,其中的加载任务全部交由tbs内核完成。
简单封装
有时候可能需要加载网络文件,但是tbs目前是暂时不支持在线预览的,因此是需要使用网络将文件下载下来之后在展示,因此笔者这里对获取文件路径这一部分进行封装,如下:
public void show() { if(mOnGetFilePathListener!=null){ mOnGetFilePathListener.onGetFilePath(this); } } /*** * 将获取File路径的工作,“外包”出去 */ public interface OnGetFilePathListener { void onGetFilePath(SuperFileView2 mSuperFileView2); }
TbsReaderView是上面的SuperFileView2的子View,完整使用如下:
mSuperFileView = (SuperFileView2) findViewById(R.id.mSuperFileView); //设置获取文件路径监听 mSuperFileView.setOnGetFilePathListener(new SuperFileView2.OnGetFilePathListener() { @Override public void onGetFilePath(SuperFileView2 mSuperFileView2) { getFilePathAndShowFile(mSuperFileView2); } }); Intent intent = this.getIntent(); String path = (String) intent.getSerializableExtra("path"); if (!TextUtils.isEmpty(path)) { TLog.d(TAG, "文件path:" + path); setFilePath(path); } mSuperFileView.show();
效果图
展示doc文件
显示doc文件
展示Excel文件
显示Excel文件
展示pdf文件
显示pdf文件
展示ppt文件
显示ppt文件
展示txt
显示TXT文件
后续:Bug 修复
网友反映有些手机加载不了文件,会出现以下画面:
文件预览失败.png
经过排查发现原因如下:
错误原因.png
解决办法:
2解决错误.png
另外一种方式确定是不是这个原因导致的文件加载失败,你可以文件管理器那里看看有没有这个文件夹存在,如下:
没有Temp文件夹.png
转载自:https://www.jianshu.com/p/3f57d640b24d源码:
-
java web在线预览pdf、word、excel
2017-11-15 16:53:55使用maven构建工具。前端使用pdf插件。后台搭建的springmvc框架,主要用于web在线预览pdf、word、excel文件。不需要安装office等其他插件 -
java实现excel转pdf(超简单,傻瓜式直接根据excel模版生成pdf,VO写值,通过字段上的注解定位单元格的位置)
2019-04-02 00:12:44根据任意excel模版,将任意值填入到模版里面,然后生成pdf。(纯java实现) 支持多sheet页 举个例子: excel模版如下: 然后假如这里要将纳税人识号和税款所属期这个两个单元格的值写入我们想要的值 public class ... -
Excel2010数据透视表大全.pdf
2019-07-22 09:48:08《Excel疑难千寻千解丛书:Excel 2010数据透视表大全》是“Excel 疑难千寻千解”丛书之一,为读者展示了在Excel 2010中运用数据透视表解决疑难问题的实战技巧。《Excel疑难千寻千解丛书:Excel 2010数据透视表大全》共... -
word、excel、ppt转pdf小demo,毫无水印,全套可用包含三个jar,还有可用license.xml,有教程代码
2019-06-28 10:58:26看我博客有代码展示,有图片展示,这里面包含一个java代码的demo,有三个jar包对应三种不同转换,还有三个简单封装的类,还有最重要的license.xml,无任何水印,无任何水印,无任何水印,无任何水印,无任何水印,... -
Excel2010 函数与公式.pdf
2019-07-23 08:14:19《Excel 2010函数与公式》是“Excel疑难千寻千解”丛书之一,为读者展示了在Excel 2010中运用函数与公式解决疑难问题的实战技巧,包含函数与公式的基础理论及操作技巧、各类函数的实际应用、Excel其他功能结合函数的... -
可以免费批量Excel转PDF的在线转换工具
2022-03-17 21:39:49有一个最简单的办法就是把Excel转换成PDF文件,我们在工作当中,很多时候给别人发送Excel文件的时候需要转换成PDF格式,这样别人只能阅读不好修改数据公式了,那么改如何操作呢,今天小编就和大家分享一个简单的方法... -
Beginning Big Data with Power BI and Excel 2013.pdf
2019-05-18 19:17:19通过指导、洞察、建议和案例研究,以Power BI和Excel 2013开始大数据将向您展示如何: 从网页、SQL和NoSQL数据库、Azure Marketplace和其他源导入和混合数据。 利用数据透视表和数据透视图的分析能力,开发关系数据... -
用数据说话excel高效数据分析从入门到精通.pdf
2020-11-13 19:06:52用数据说话Excel 高效数据分析从入门到精通 资深实战型 Excel 培训讲师和应用解决方案专家 韩小良 面对浩瀚的数据如何提炼信息把需要的信息快速展示给客户和领导公司的经营状况 和财务状况到底如何预算执行情况到底... -
《Excel疑难千寻千解丛书:Excel 2010 VBA编程与实践》.pdf
2019-07-05 15:49:14《Excel疑难千寻千解丛书:Excel 2010 VBA编程与实践》是“Excel疑难千寻千解”丛书之一,为读者展示VBA编程的实战技巧,包括工作中的疑难处理方案、自定义函数技术、代码封装技术、功能区设计技术,以及插件开发... -
java代码生成Excel转pdf 导出
2020-11-05 10:03:29文章目录前言(这里只给演示控制层和biz层因为主要逻辑都在biz层,service就不演示了 都是查询数据库的逻辑)一、生成Excel文件进行转PDF导出二、使用步骤-------标题(注意不要直接复制,因为里面还有好多查询数据库的... -
《Excel疑难千寻千解丛书:Excel 2010操作与技巧》.pdf
2019-07-05 15:36:43《Excel疑难千寻千解丛书:Excel 2010操作与技巧》是“Excel疑难千寻千解”丛书之一,展示Excel2010新界面下的操作方法与技巧,《Excel 2010操作与技巧》共包含217个疑难案例。 -
使用Python转换PDF,Word/Excel/PPT/md/HTML都能转!
2020-12-01 08:26:52关于各种格式的文件转换为PDF有很多第三方工具与网站可以实现,但是使用Python的好处不仅可以批量转换,同时一旦脚本写完了以后就可以一键执行,彻底解放双手,那么本文就来盘一盘如何使用Python来将Word/Excel/PPT/... -
例学VBA:EXCEL/ACCESS/POWERPOINT中的VBA高效应用2010.pdf
2019-07-10 15:18:30例学VBA:Excel·Access·PowerPoint中的VBA高效应用》主要介绍基于Microsoft Office的VBA应用程序开发。全书分为4篇:第1篇包括第0章,主要介绍与Office VBA编程相关的基础知识;第2篇包括实例1~实例20,主要通过20... -
PDF文本内容批量提取到Excel
2021-03-23 19:01:35作用:pdf内容批量提取到excel 各位亲朋好友,我才上班时候有个鼓噪乏味工作,就是把一个个PDF内容复制粘贴到Excel表格里面,方便以后数据库全文搜索。 举个例子,此Excel有两个字段 A列是pdf文件名 B列用于存放... -
Excel2010操作与技巧》.pdf
2019-07-22 13:09:29《Excel 2010操作与技巧》是“Excel疑难千寻千解”丛书之一,展示Excel 2010新界面下的操作方法与技巧,对众多用户在实际应用中遇到的疑难问题进行答疑解惑。《Excel 2010操作与技巧》侧重于“解决问题”,主要展示... -
Excel2007人力资源实战应用宝典].pdf
2019-07-23 09:02:52《Excel 2007人力资源实战应用宝典》针对人力资源管理人氏所需求的各种信息录入、数据统计、表格制作和图表展示,汇编出最实用、最贴近实际工作的知识和技巧,全面系统地介绍了Excel的技术特点和应用方法,深入揭示... -
Python自动化办公:将Excel表格内容批量导出为PDF文件
2022-04-15 15:37:13Python自动处理Excel表格数据序言 序言 上一篇咱们说了讲多个表格数据合并到一个表格,本次咱们来学习如何将表格数据导出PDF。 部分数据 然后需要安装一下这个软件 wkhtmltopdf 不知道怎么下载的可以在电脑端左侧... -
Excel2010高级VBA编程宝典.pdf
2019-07-22 11:06:40Excel 2010高级 VBA编程宝典不仅介绍使用 Excel的新方法和开发新电子表格应用程序的步骤,还展示如何开发 VBA子例程和函数,以及如何使用高级编程技术等。针对从早期版本转向使用 Excel 2010的读者,《中文版Excel ... -
Excel疑难千寻千解丛书之二《Excel2010函数与公式》高清PDF(完整?书签点击速达)
2018-06-02 21:15:00《Excel2013函数与公式》是“疑难千寻千解”丛书之一,为读者展示运用函数与公式解决疑难问题的实战技巧,包括基础理论、操作技巧、分类函数应用、综合应用及开发实战。《Excel2013函数与公式》将系统的知识点融入于...