Dear Naeimeh Hassanzadeh Goji apparently yes. At least I found this potentially useful article in which reactions of porphyrins with certain halogenated carboxylic acids is reported. The article is entitled
Noncovalent interactions in acid–porphyrin complexes
You can see porphyrin crystal structures where strong carboxylic acids located in top and down porphyrin macrocycle and undergoing very strong Hydrogen bonding. In this paper (Article Structural elucidation and study of intermolecular interacti...
) we got a crystal where two Trifluoroacetic acid (TFA) molecules are located on two sides of porphyrin and that leads to an increased non-planarity of the porphyrin ring. TFA hydrogenating the porphyrin core and undergoing very strong hydrogen bonding.
In another paper ( https://pubs.rsc.org/en/content/articlehtml/2015/ra/c5ra18310c ) where we used explosive picric acid and we observed the same phenomenon. Picric acid hydrogenating porphyrin core and undergoing strong interaction don't expect any other reactions with core nitrogen
acid–porphyrin complexation is shown to be compatible with established metal–ligand interactions in the generation of novel supramolecular assemblies in solution.
As I see, both of these Acids You mentioned, have electron-withdrawing groups, and are able to protonate Nitrogen atoms, Did you Try any weak acid also?
I read somewhere that Porphyrins are acid sensitive..don't they decompose in this conditions?
Naeimeh Hassanzadeh Goji tetraphenyl porphyrin derivatives are not that much acid sensitive. it won't degrade quickly. I tried weak acids but not successful in getting single crystals.