Hi!
We are using a Metered license for our document conversion service which uses the Aspose Imaging, Cells, Pdf, Slides and Words libraries for Java.
Lately we’ve been having problems where we randomly get “Evaluation Only” watermarks in generated images and pdfs.
Our services have a piece of code that we run on startup, that sets up licenses and prints the consumption stats we can get from the different Metered classes. The Kotlin code is like this:
import com.aspose.cells.Metered as CellsMetered
import com.aspose.imaging.Metered as ImagingMetered
import com.aspose.pdf.Metered as PdfMetered
import com.aspose.slides.Metered as SlidesMetered
import com.aspose.words.Metered as WordsMetered
(...)
val cells = CellsMetered()
cells.setMeteredKey(meteredPublicKey, meteredPrivateKey)
log.info("Aspose Cells metered credits consumed = ${CellsMetered.getConsumptionCredit()}, data consumed = ${CellsMetered.getConsumptionQuantity()} MB")
val imaging = ImagingMetered()
imaging.setMeteredKey(meteredPublicKey, meteredPrivateKey)
log.info("Aspose Imaging metered credits consumed = ${ImagingMetered.getConsumptionCredit()}, data consumed = ${ImagingMetered.getConsumptionQuantity()} MB")
val pdf = PdfMetered()
pdf.setMeteredKey(meteredPublicKey, meteredPrivateKey)
log.info("Aspose Pdf metered credits consumed = ${PdfMetered.getConsumptionCredit()}, data consumed = ${PdfMetered.getConsumptionQuantity()} MB")
val slides = SlidesMetered()
slides.setMeteredKey(meteredPublicKey, meteredPrivateKey)
log.info("Aspose Slides metered credits consumed = ${SlidesMetered.getConsumptionCredit()}, data consumed = ${SlidesMetered.getConsumptionQuantity()} MB")
val words = WordsMetered()
words.setMeteredKey(meteredPublicKey, meteredPrivateKey)
log.info("Aspose Words metered credits consumed = ${WordsMetered.getConsumptionCredit()}, data consumed = ${WordsMetered.getConsumptionQuantity()} MB")
Recently, the output of the above code has been like below:
Aspose Cells metered credits consumed = 134.0, data consumed = 2789.35286 MB
Aspose Imaging metered credits consumed = 0, data consumed = 0 MB
Aspose Pdf metered credits consumed = 0, data consumed = 0 MB
Aspose Slides metered credits consumed = 134.0, data consumed = 2789.35286 MB
Aspose Words metered credits consumed = 134.00000, data consumed = 2789.35286 MB
Why would the numbers for Imaging and Pdf be zeroes? I don’t think it used to be like this, but I don’t know exactly when this started happening.
Does this look like it could be the reason for the watermarks sometimes showing up in the generated files? How would I go about debugging/fixing this?