- 论坛徽章:
- 3
|
原帖由 奥丁@ 于 2008-12-18 10:15 发表
我想在源代码中找到 而且语言要用C++
有xdf的源码吧。
1 格式转换
doc/pdftotext.cat
xpdf/pdftotext.cc
2 得到选择区域的文本
xpdf/XPDFCore.cc
$ cat xpdf/XPDFCore.cc |grep "Selection"
- GString *XPDFCore::currentSelection = NULL;
- XPDFCore *XPDFCore::currentSelectionOwner = NULL;
- if (currentSelectionOwner == this && currentSelection) {
- delete currentSelection;
- void XPDFCore::copySelection() {
- currentSelectionOwner = this;
- XtOwnSelection(drawArea, XA_PRIMARY, XtLastTimestampProcessed(display),
- &convertSelectionCbk, NULL, NULL);
- Boolean XPDFCore::convertSelectionCbk(Widget widget, Atom *selection,
复制代码 |
|