小编Cyb*_*onk的帖子

使用vbscript从本地驱动器获取文件夹列表

我想从计算机中删除所有document.doc文件,因为我知道如何从文件夹中获取子文件夹列表,但是不知道如何从根目录中获取文件夹列表(例如C :)

subfoldersInFolder = folder.subFolder
Run Code Online (Sandbox Code Playgroud)

给出文件夹的所有子文件夹。但据推测,我想要所有来自C:的文件夹:

 Set colDrives = objFSO.Drives
 For Each objDrive in colDrives
 objDrive.subFolder  //doesn't work
 Next
Run Code Online (Sandbox Code Playgroud)

vbscript

6
推荐指数
1
解决办法
2万
查看次数

登录 Apache PDFBox 2.0 时出现“您没有关闭 PDF 文档”

在对 PDDocument 进行数字签名后,我关闭了 Apache PDFBox 中的 PDDocument。我收到警告:You did not close PDF Document当我关闭我的实例时。只有一个地方创建了 PDDocument 并且它被正确关闭。

代码 :

private byte[] buildDocument(File pdfToSign, PDVisibleSigProperties visibleSigProperties) throws Exception
{
    FileOutputStream fos = null;
    PDDocument doc = null;
    try
    {
        String signedPdfName = pdfToSign.getName().substring(0, pdfToSign.getName().indexOf("."));
        File signedFile = File.createTempFile(signedPdfName + "_signed", null);
        signedFile.deleteOnExit();

        fos = new FileOutputStream(signedFile);
        doc = PDDocument.load(pdfToSign);

        // create signature dictionary
        PDSignature signature = new PDSignature();
        signature.setFilter(PDSignature.FILTER_ADOBE_PPKLITE);

        // subfilter for basic and PAdES Part 2 signatures
        signature.setSubFilter(PDSignature.SUBFILTER_ADBE_PKCS7_DETACHED);
        signature.setName(visibleSigProperties.getSignerName());
        signature.setLocation(visibleSigProperties.getSignerLocation());
        signature.setReason(visibleSigProperties.getSignatureReason()); …
Run Code Online (Sandbox Code Playgroud)

pdfbox

2
推荐指数
1
解决办法
5704
查看次数

加密是否保留 Base64 编码

通过 HTTP 进行编码 (Base64) - 加密 - 传输是否安全。

或者加密 - 编码 - 传输是正确的方法吗?

是否有可能因此而导致数据损坏 为什么我们使用 Base64?

使用:Javax密码AES/CBC/PKCS5Padding

用于加密具有多个文件附件的多部分 http 请求

编码:base64

java encryption base64

2
推荐指数
1
解决办法
2017
查看次数

Bootstrap的下拉列表没有扩展

想要我的应用程序的水平菜单。使用Bootstrap通过以下http://www.bootply.com/113314示例创建它。它虽然没有工作。还需要帮助,以了解该按钮如何标识适当的列表,而无需在文档中存在多个的事实的情况下在任何地方指定id或名称

<!DOCTYPE html>
<html>

<head>
    <title>Home</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa"
        crossorigin="anonymous"></script>

</head>

<body>

    <div align="center">
        <a href="home.erp">
            <img title="Home" class="img-rounded" src="images/empireSmall.png">
        </a>
    </div>
    <div align="right">
        <button class="btn btn-danger" onclick="logout()">Logout</button>
    </div>
    <div class="btn-group">

        <div class="btn-group">
            <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
             Administration
            <span class="caret"></span>
            </button>

            <ul class="dropdown-menu" role="menu">

                <li><a href="karateInvoiceApplication.erp"> Invoice Application</a></li>

                <li><a href="karateStudentApplication.erp"> Karate Student</a></li>

            </ul>
        </div>

        <div class="btn-group">
            <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
             System
            <span class="caret"></span> …
Run Code Online (Sandbox Code Playgroud)

twitter-bootstrap-3

1
推荐指数
1
解决办法
2175
查看次数

Apache Tika和Apache PDFBox 2.0

我们正在使用tika 1.4.现在我们需要使用PDF Box 2.0.1进行数字签名.我可以看到tika中使用了一些PDF框的类.Pdf盒是tika的一部分吗?如果是这样,我不需要单独添加pdf框.我呢?tika 1.13向后兼容tika 1.4吗?

pdfbox apache-tika

0
推荐指数
1
解决办法
2227
查看次数