@@ -60,7 +60,7 @@ public static void main(String[] args) {
6060 if (response .body () != null ) {
6161 String respStr = response .body ().string ();
6262 System .out .println (prettyJson (respStr ));
63-
63+
6464 // All files uploaded or generated are automatically deleted based on the
6565
6666 // All files uploaded or generated are automatically deleted based on the
@@ -70,12 +70,13 @@ public static void main(String[] args) {
7070 //
7171 // The following code is an optional step to delete sensitive files
7272 // (unredacted, unencrypted, unrestricted, or unwatermarked) from pdfRest servers.
73- // IMPORTANT: Do not delete the previewId (the preview PDF) file until after the redaction is
74- // applied with the /pdf-with-redacted-text-applied endpoint.
73+ // IMPORTANT: Do not delete the previewId (the preview PDF) file until after the redaction
74+ // is applied with the /pdf-with-redacted-text-applied endpoint.
7575
7676 String previewId = new JSONObject (respStr ).getString ("outputId" );
7777 String deleteJson = String .format ("{ \" ids\" :\" %s, %s\" }" , uploadedID , previewId );
78- RequestBody deleteBody = RequestBody .create (deleteJson , MediaType .parse ("application/json" ));
78+ RequestBody deleteBody =
79+ RequestBody .create (deleteJson , MediaType .parse ("application/json" ));
7980 Request deleteRequest =
8081 new Request .Builder ()
8182 .header ("Api-Key" , dotenv .get ("PDFREST_API_KEY" , DEFAULT_API_KEY ))
0 commit comments