AdobeR | R package to access Adobe Analytics Reporting API v2 | Runtime Evironment library
kandi X-RAY | AdobeR Summary
kandi X-RAY | AdobeR Summary
This project is a sketch of an idea I had about creating a commercially-supported version of an R package for the Adobe Analytics API v2.0. I have since decided that my personal interests lie elsewhere. The code is released under the MIT license. Users may file issues on this repo as a means of connecting with other like-minded users, but should have no expectation that the original developer will respond. For developers interested in submitting improvements, I am happy to review and merge pull requests within reason. If you choose to go this route, please make small commits working on a single feature at a time, so that it can be relatively simple to evaluate the impact of the change. If there are users who are interested in sponsoring the development of this package, I have added a GitHub sponsors button with various levels of sponsorship. If you are a company interested in commercial sponsorship of this package, please feel free to contact me and we can discuss the details.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of AdobeR
AdobeR Key Features
AdobeR Examples and Code Snippets
Community Discussions
Trending Discussions on AdobeR
QUESTION
I'm trying to create a PDF/A-1b compliant file, starting from java using JasperReports.
I'm using Adobe Acrobat Pro DC for checking the file with preflight tool, which is giving me an error regarding the field dc:title
, this is the error's screenshot:
I've tried setting the property in any possible way, but I still getting this error and I can't figure why. I've tried reading at http://purl.org/dc/elements/1.1/dc:title , but I didn't find nothing useful.
I have a suspicion about this report regarding metadata - > advanced -> http://purl.org/dc/elements/1.1 , where I see there is a dc:title
empty, and a dc:title[1]
filled, but I don't know how to set the first one.
ANSWER
Answered 2020-Nov-11 at 13:14While reading code into JRPdfExporter
inside JasperReport lib, I've found a comment saying:
iText 2.1.7 does not properly write localized properties and keywords. XMP metadata might be non conforming, include the Adobe XMP library to correct
So I've discovered inside of Jasper Report's pom.xml
that there is a specific Adobe library (set as optional inside that pom):
QUESTION
I have this bit that was setup years ago and has been working fine:
...ANSWER
Answered 2020-Sep-28 at 13:10As commented from @fmw42, the setImageColorspace wasn't working correctly. I ended up completely removing the profiles, and just using setColorspace. like this:
QUESTION
I am digitally signing a PDF with iText7 and GlobalSign DSS. I implemented the GlobalSing DSS API calls into the necessary iText classes. I get the proper server responses and I am able to call the pdfSigner.signDetached() method with all the needed arguments. Signing with the pdfSigner also succeeds and I get a signed PDF that looks good at first sight. But when I open the signed pdf in Adobe Reader it tells me that the trust chain of the signing certificate is broken and that it can not trace it back to the CA root. Which is strange because it is an AATL certificate and the AATL list of the Adobe Reader is up to date.
And I do not understand why this is happening.
This is what I do :
call DSS for an identity : returns an id string, the signing certificate and an ocsp response
call DSS for the trustchain : returns the chain of certificates used to
sign the signing certicate, up to the GlobalSign root, together with
their oscp responses (except for the root)I create an array of X509Certificate objects containing the signing
certificate, 2 intermediates and the GlobalSign root certificate (in that order)I implement an IOcspClient that uses the ocsp response from the DSS call for the identity
I implement an ITsaClient that calls the DSS API /timestamp/{digest}
and finally I execute : pdfSigner.signDetached(externalDigest, externalSignature, chain.toArray(new X509Certificate[]{}), null, dssOcspClient, dssTSAClient, 0, PdfSigner.CryptoStandard.CMS);
in which the externalSignature (an implementation of IExternalSignature) will call the DSS identity/{id}/sign/{digest} API
While debugging into the signDetached method and deeper into the pdfSigner code, I clearly see that all certificates are in the chain in the right order. I see them being processed in the PdfPKCS7 class (however I don't know/understand exactly what is going on there). I see the signing taking place, no exceptions are thrown and at the end the produced PDF looks like it is correctly signed. Which Adobe says is not.
What am I missing here ?
The trustchain response from de DSS API not only returns the certificates from the chain of trust of the signing certificate, but also the ocsp responses for the two intermediates between the signing certificate and the GlobalSign root. These are never used. And in fact I don't know what to do with them either.
Could these be the missing pieces for AdobeReader to reconstruct the trust chain up to the GlobalSign root ?
And if so : how do I put them into that PDF ?
And if not : then what am I doing wrong that breaks that trustchain ?
An answer to these questions would save my day :-)
Here is the link to a PDF that will show the problem :
test pdf signed with DSS
(after accepting the answer, I removed the example pdf on my client's request)
Below are some pieces of the code.
The center piece that gathers the DSS info and calls the signDetached method
ANSWER
Answered 2020-Apr-08 at 14:14Your signer certificate is invalid.
In detailYour signer certificate and its certificate chain (according to issuer/subject match) are embedded in the signature, in particular your certificate with subject
cn=Homologatie Voertuigen, ou=Departement Mobiliteit en Openbare Werken, ou=Vlaams Huis voor de Verkeersveiligheid, o=Ministeries van de Vlaamse Gemeenschap, l=Brussel, st=Brussel, c=BE
and its claimed issuer
cn=GlobalSign CA 5 for AATL, o=GlobalSign nv-sa, c=BE
Thus, one can check the signature with which your certificate is signed. And while doing so one sees that the TBSCertificate
part of your signer certificate (the to-be-signed part) has this digest value
QUESTION
I use the following code in NAV 2017:
...ANSWER
Answered 2017-Aug-24 at 16:43Printer name was incorrect. I'll leave this thread, because it may be useful for other people having the same problem or just wondering how pdf printing works with this library.
QUESTION
I'm following the iText certificate verification example (it's the 3rd example found here: https://itextpdf.com/en/resources/examples/itext-7/digital-signatures-chapter-5).
I don't quite get the following piece of code (I'm using iTextsharp with C#, but code for java is similar):
...ANSWER
Answered 2019-May-25 at 00:37certificates parameter in method CertificateVerification.VerifyCertificates is of BouncyCastle type list, thus you will need to convert Windows Certificate Store certificates to BouncyCastle type certificates.
Below code may be useful:
QUESTION
I am trying to set up if-match header as following and making use of HttpClient available in System.Net.Http:
...ANSWER
Answered 2019-Mar-14 at 19:01Use adobeRequest.Headers.TryAddWithoutValidation
instead.
QUESTION
I need to create a PDF/A from a Folder of Tiff Files. Creating a PDF (1.5) is working with ImageMagick. But Converting this PDF to a PDF/A using Ghostscript is a problem.
My GhostScript cmd:
...ANSWER
Answered 2018-Oct-29 at 16:28Well there's quite a few problems here.
You haven't said what version of Ghostscript you are using, nor have you supplied an example file to experiment with. You also haven't given the back channel output which might contain additional information.
You can't use the supplied model PFA_def.ps without modification, at the very least you need to modify the /ICCProfile entry to point to a real valid ICC profile. I suspect this has caused pdfwrite to abort PDF/A-2 production, which would normally be mentioned in the back channel output.
You haven't set -dColorConversionStrategy, just setting the ProcessColorModel is not sufficient, pdfwrite will mostly ignore that. If you don't tell pdfwrite that you want colours converted to a different space, it will preserve them unchanged, regardless of the Process color model.
QUESTION
I am doing cmyk to rgb conversion but trying various way, unable to get it done. Kindly check my findings and please advice me,
1. i am getting the err and warning message when running through alfresco and conversion is incorrect
os: Linux
command: /opt/alfresco-one/common/bin/convert -density 300 /opt/alfresco-one/tomcat/temp/amicmyk.tif -profile /opt/alfresco-one/cit/rgbprofile/AdobeRGB1998.icc /opt/alfresco-one/Websites/amirgb.jpg
succeeded: true
exit code: 0
out:
err: .convert.bin: delegate library support not built-in `/opt/alfresco-one/tomcat/temp/amicmyk.tif' (LCMS) @ warning/profile.c/ProfileImage/814.
2. When run imagemagick command through terminal there is no error and conversion is perfect
[alfresco-one@ABC-STG-server alfresco-one]$ /opt/alfresco-one/common/bin/convert -density 300 /opt/alfresco-one/tomcat/temp/amicmyk.tif -profile /opt/alfresco-one/cit/rgbprofile/AdobeRGB1998.icc /opt/alfresco-one/Websites/amiRgb.jpg
3. I can see that lcms is present as in built delegate
[alfresco-one@ABC-STG-server alfresco-one]$ convert -version
Version: ImageMagick 7.0.7-5 Q16 x86_64 2017-10-01 http://www.imagemagick.org
Copyright: © 1999-2017 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC HDRI Modules OpenMP
Delegates (built-in): bzlib cairo djvu fftw fontconfig fpx freetype gslib jng jpeg lcms ltdl lzma pangocairo png ps tiff webp wmf x xml zlib
4. So i tried executing the imagemagick command using Runtime.exec() as below
If I run following program, it executed successfully and converted correctly
import java.io.File;
import java.io.IOException;
public class CmykToRgb {
...ANSWER
Answered 2018-Apr-19 at 09:11your alfresco is configured to use imageMagick from /opt/alfresco-one/common/bin/ but in a OS terminal I assume you use the version from your linux distribution. The Alfresco ImageMagick version is handcrafted and maybe incomplete. You should configure alfresco to use the ImageMagick you use from command line.
e.g. in alfresco-global.properties
QUESTION
I have created a PostScript file from a TIFF image using ImageMagick.
The command-line I am using is:
...ANSWER
Answered 2017-May-22 at 07:19The lines you quote above are comments and, from the comments present, suggest that this is an EPS file, not a PostScript program.
The main difference is that EPS is 'encapsulated' which means its intended to be placed verbatim inside a PostScript program. The enclosing program contains the intelligence regarding the media size, and arranges to set the context such that the EPS is scaled, rotated, translated so that it fits appropriately on the media.
In order to do this successfully, the EPS file must follow certain rules; in particular it must not set any media size itself (because that would mess with the enclosing program).
So it seems likely to me that what you have is an EPS file which does not request any media size at all. So its hardly surprising that you have to tell Ghostscript what you want to do with it.
Now in order for the enclosing program to place the EPS it needs to know its characteristics, the size and shape of the content. That's what the comments are for. Ordinarily an EPS file is read by an application (eg MS Word, LibreOffice etc) which parses out those comments and uses the information when generating the final PostScript program. The reason an EPS uses comments to store this information is precisely so that it has no effect on the actual content of the EPS and so the entire EPS can be included without further processing by the application.
The short answer is that if you read the Ghostscript documentation here you will find descriptions of the EPSCrop
and EPSFitPage
command line switches which will do all the work for you.
QUESTION
I'm reaching out to larger community of developers in seek of help to understand the real cause and possibly finding a fix. I have asked questions from Aspose, and they have also tracked the issue (PDFNET-42880) in their system. I think they are not going to investigate this anytime soon as it is very specific case. And now I am posting this here to ask more details about:
What is difference in Adobe 'save as' vs. Foxit Reader 'save as' vs. Windows Reader 'save as' feature?
Issues with Adobe product that are not so obvious to figure out. I don't even know what to ask :D
Link to their (Aspose) old forum: https://www.aspose.com/community/forums/thread/845549/removing-stamps-fails-after-saving-stamped-file-from-adobe-acrobat.aspx
Case: Created PDF with forms using OpenOffice (version 3.4.0), stamped with Aspose PDF, opened with Adobe Reader DC (or Adobe Acrobat XI), filled, saved as new file. Now this new file is fine, but when I try to remove stamps using Aspose (and replace with new stamp later), this is where things get interesting.
Files that I've tested with: https://1drv.ms/f/s!Auvpijam7a73iDzOqc6wZPuY9l81
- Stamp_Location.png
- OoPdfFormExample_WithStamp.pdf
- OoPdfFormExample_WithStamp_StampRemoved.pdf
- OoPdfFormExample_WithStamp_SavedFromFoxit.pdf
- OoPdfFormExample_WithStamp_SavedFromFoxit_StampRemoved.pdf
- OoPdfFormExample_WithStamp_SavedFromWindowsReader.pdf
- OoPdfFormExample_WithStamp_SavedFromWindowsReader_StampRemoved.pdf
- OoPdfFormExample_WithStamp_SavedFromAdobeReader.pdf
- OoPdfFormExample_WithStamp_SavedFromAcrobat_StampRemoved.pdf
C# code that is used to remove the stamp(s):
...ANSWER
Answered 2017-Jul-06 at 22:16Ok - The thing you are referring to is not a stamp annotation. It's an XObject that gets drawn into the page content. Why Aspose refers to it as a Stamp is... well... a mystery. When you remove the "stamp" (not a stamp) Aspose seems to be removing the XObject but not the instructions to draw it from the page Contents stream... that's why you're getting the error in Acrobat. The other applications are more permissive with bad PDF and my guess is when they write out the file, they are removing references to non-existent objects. You can make Acrobat attempt to fix problems like this by selecting Save As Optimized PDF. However, you are far better off removing the drawing instruction in addition to the XObject.
Because of the way you've created the file and added the "stamp", your page content stream is an array of streams. Remove the last item in the array, which is the instruction to draw the XObject, and you file will work without errors in all the viewers. Note: It won't always be the case that the last item in the content array will be your stamp. It's just that your stamp is the last thing to get drawn so it goes at the end.
If your intention is to "replace" the "stamp", you'll want to do so by removing the XObject as you are doing now, then remove the instruction, then add the new "stamp".
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install AdobeR
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page